mirror of https://github.com/tc39/test262.git
17 lines
532 B
JavaScript
17 lines
532 B
JavaScript
// Copyright (C) 2021 Igalia S.L. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-Intl.NumberFormat.prototype.resolvedOptions
|
|
description: >
|
|
Tests that Intl.NumberFormat.prototype.resolvedOptions calls
|
|
OrdinaryHasInstance instead of the instanceof operator which includes a
|
|
Symbol.hasInstance lookup and call among other things.
|
|
---*/
|
|
|
|
Object.defineProperty(Intl.NumberFormat, Symbol.hasInstance, {
|
|
get() { throw new Test262Error(); }
|
|
});
|
|
|
|
Intl.NumberFormat();
|