fe048410f8
Bug: chromium:707580 Change-Id: I38f8740ac0df5d5e4e99808e4fa20bae88a23a11 Reviewed-on: https://chromium-review.googlesource.com/528077 Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Toon Verwaest <verwaest@chromium.org> Cr-Commit-Position: refs/heads/master@{#45790}
11 lines
405 B
JavaScript
11 lines
405 B
JavaScript
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
var thrower = { [Symbol.toPrimitive] : function() { throw "I was called!" } };
|
|
var heap_number = 4.2;
|
|
var smi_number = 23;
|
|
|
|
assertThrows(() => heap_number.hasOwnProperty(thrower));
|
|
assertThrows(() => smi_number.hasOwnProperty(thrower));
|