Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/instanceof/S15.3.5.3_A1_T2.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: |
6 Assume F is a Function object. When the [[HasInstance]] method of F is
7 called with value V, the following steps are taken: i) If V is not an
8 object, return false
9 es5id: 15.3.5.3_A1_T2
10 description: V is string
11 ---*/
12
13 var FACTORY;
14 FACTORY = Function("name","this.name=name;");
15
16 //CHECK#1
17 if (("1" instanceof FACTORY)!==false) {
18 $ERROR('#1: Assume F is a Function object. When the [[HasInstance]] method of F is called with value V, the following steps are taken: i) If V is not an object, return false');
19 }