Kaido Kert | f309f9a | 2021-04-30 12:09:15 -0700 | [diff] [blame] | 1 | // Copyright 2020 the V8 project authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | let useArgs = undefined; | ||||
6 | function f(arg) { | ||||
7 | useArgs = 'result' + arguments[0] + arg; | ||||
8 | } | ||||
9 | |||||
10 | Intl.NumberFormat.__proto__ = { [Symbol.hasInstance]: f }; | ||||
11 | |||||
12 | new Intl.NumberFormat(); |