HomeSort by relevance Sort by last modified time
    Searched refs:instanceof (Results 1 - 25 of 233) sorted by null

1 2 3 4 5 6 7 8 910

  /external/chromium_org/v8/test/mjsunit/
instanceof.js 28 assertTrue({} instanceof Object);
29 assertTrue([] instanceof Object);
31 assertFalse({} instanceof Array);
32 assertTrue([] instanceof Array);
43 assertTrue(C instanceof F);
44 assertTrue(B instanceof F);
45 assertFalse(A instanceof F);
48 assertTrue(C instanceof F);
49 assertFalse(B instanceof F);
50 assertFalse(A instanceof F)
    [all...]
global-const-var-conflicts.js 34 try { eval("var a"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
36 try { eval("var a = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
40 try { eval("var b"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
42 try { eval("var b = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
47 try { eval("const c"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
50 try { eval("const c = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
55 try { eval("const d"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
58 try { eval("const d = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
mirror-function.js 52 assertTrue(mirror instanceof debug.Mirror);
53 assertTrue(mirror instanceof debug.ValueMirror);
54 assertTrue(mirror instanceof debug.ObjectMirror);
55 assertTrue(mirror instanceof debug.FunctionMirror);
65 assertTrue(mirror.constructorFunction() instanceof debug.ObjectMirror);
66 assertTrue(mirror.protoObject() instanceof debug.Mirror);
67 assertTrue(mirror.prototypeObject() instanceof debug.Mirror);
function-bind.js 215 // Test obj2 is instanceof both bar and f.
216 assertTrue(obj2 instanceof bar);
217 assertTrue(obj2 instanceof f);
219 // This-args are not relevant to instanceof.
224 assertTrue(obj3 instanceof bar);
225 assertTrue(obj3 instanceof f);
226 assertFalse(obj3 instanceof foo);
227 assertFalse(obj3 instanceof Function);
228 assertFalse(obj3 instanceof String);
284 assertTrue(cdesc.get instanceof Function)
    [all...]
mirror-boolean.js 38 assertTrue(mirror instanceof debug.Mirror);
39 assertTrue(mirror instanceof debug.ValueMirror);
40 assertTrue(mirror instanceof debug.BooleanMirror);
mirror-array.js 52 assertTrue(mirror instanceof debug.Mirror, 'Unexpected mirror hierachy');
53 assertTrue(mirror instanceof debug.ValueMirror, 'Unexpected mirror hierachy');
54 assertTrue(mirror instanceof debug.ObjectMirror, 'Unexpected mirror hierachy');
55 assertTrue(mirror instanceof debug.ArrayMirror, 'Unexpected mirror hierachy');
62 assertTrue(mirror.constructorFunction() instanceof debug.ObjectMirror, 'Unexpected mirror hierachy');
64 assertTrue(mirror.protoObject() instanceof debug.Mirror, 'Unexpected mirror hierachy');
65 assertTrue(mirror.prototypeObject() instanceof debug.Mirror, 'Unexpected mirror hierachy');
71 assertTrue(indexedProperties[i] instanceof debug.Mirror, 'Unexpected mirror hierachy');
72 assertTrue(indexedProperties[i] instanceof debug.PropertyMirror, 'Unexpected mirror hierachy');
  /external/chromium_org/v8/test/mjsunit/regress/
polymorphic-accessor-test-context.js 7 function t1() { return this instanceof t1; }
8 function t2() { return this instanceof t2; }
11 Object.defineProperty(o1, "t", {get:function() { return this instanceof o1.constructor; }});
13 Object.defineProperty(o2, "t", {get:function() { return this instanceof o1.constructor; }});
regress-734862.js 33 assertTrue(catcher(null, 'foo') instanceof TypeError);
34 assertTrue(catcher(void 0, 'foo') instanceof TypeError);
35 assertTrue(catcher(null, 123) instanceof TypeError);
36 assertTrue(catcher(void 0, 123) instanceof TypeError);
regress-667061.js 33 assertTrue(o instanceof TypeError);
48 assertTrue(o instanceof TypeError);
68 assertTrue(o instanceof TypeError);
87 assertTrue(o instanceof TypeError);
regress-bind-receiver.js 39 assertEquals(true, lenient.bind(true)() instanceof Boolean);
40 assertEquals(true, lenient.bind(42)() instanceof Number);
41 assertEquals(true, lenient.bind("")() instanceof String);
  /external/proguard/examples/dictionaries/
keywords.txt 57 instanceof
  /prebuilts/tools/common/proguard/proguard4.7/examples/dictionaries/
keywords.txt 57 instanceof
  /external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/tree/
CommonErrorNode.js 29 if ( this.start instanceof org.antlr.runtime.Token ) {
37 else if ( this.start instanceof org.antlr.runtime.tree.Tree ) {
49 if ( this.trappedException instanceof org.antlr.runtime.MissingTokenException ) {
54 else if ( this.trappedException instanceof org.antlr.runtime.UnwantedTokenException ) {
59 else if ( this.trappedException instanceof org.antlr.runtime.MismatchedTokenException ) {
62 else if ( this.trappedException instanceof org.antlr.runtime.NoViableAltException ) {
  /external/chromium_org/v8/test/mjsunit/es6/
mirror-symbols.js 15 assertTrue(mirror instanceof debug.Mirror);
16 assertTrue(mirror instanceof debug.ValueMirror);
17 assertTrue(mirror instanceof debug.SymbolMirror);
mirror-collections.js 13 assertTrue(mirror instanceof debug.Mirror);
14 assertTrue(mirror instanceof debug.ValueMirror);
15 assertTrue(mirror instanceof debug.ObjectMirror);
16 assertTrue(mirror instanceof debug.MapMirror);
31 assertTrue(mirror instanceof debug.Mirror);
32 assertTrue(mirror instanceof debug.ValueMirror);
33 assertTrue(mirror instanceof debug.ObjectMirror);
34 assertTrue(mirror instanceof debug.SetMirror);
generators-mirror.js 36 assertTrue(mirror instanceof debug.Mirror);
37 assertTrue(mirror instanceof debug.ValueMirror);
38 assertTrue(mirror instanceof debug.ObjectMirror);
39 assertTrue(mirror instanceof debug.GeneratorMirror);
generators-runtime.js 60 assertTrue(g_desc.get instanceof Function, prop);
119 assertTrue(g instanceof GeneratorFunction);
122 assertTrue(g instanceof Function);
127 assertTrue(f instanceof Function); // Sanity check.
128 assertTrue(!(f instanceof GeneratorFunction));
130 assertTrue((new GeneratorFunction()) instanceof GeneratorFunction);
131 assertTrue(GeneratorFunction() instanceof GeneratorFunction);
139 assertTrue(g.prototype instanceof GeneratorFunctionPrototype);
141 assertTrue(!(g.prototype instanceof Function));
mirror-promises.js 29 assertTrue(mirror instanceof debug.Mirror);
30 assertTrue(mirror instanceof debug.ValueMirror);
31 assertTrue(mirror instanceof debug.ObjectMirror);
32 assertTrue(mirror instanceof debug.PromiseMirror);
42 assertTrue(mirror.promiseValue() instanceof debug.Mirror);
  /dalvik/dx/tests/106-verify-object-ops/
run 33 oneop instanceof
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/check_cast/d/
T_check_cast_2.d 62 ; (SubClass instanceof SuperClass)
67 ; (SubClass[] instanceof SuperClass[])
73 ; (SubClass[] instanceof Object)
77 ; (SubClass instanceof SuperInterface)
83 ; !(SuperClass instanceof SubClass)
95 ; !(SubClass instanceof SuperInterface2)
107 ; !(SubClass[] instanceof SuperInterface)
118 ; !(SubClass[] instanceof SubClass)
129 ; !(SuperClass[] instanceof SubClass[])
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/instance_of/d/
T_instance_of_2.d 62 ; (SubClass instanceof SuperClass)
68 ; (SubClass[] instanceof SuperClass[])
74 ; (SubClass[] instanceof Object)
79 ; (SubClass instanceof SuperInterface)
85 ; !(SuperClass instanceof SubClass)
91 ; !(SubClass instanceof SuperInterface2)
97 ; !(SubClass[] instanceof SuperInterface)
102 ; !(SubClass[] instanceof SubClass)
107 ; !(SuperClass[] instanceof SubClass[])
  /external/chromium_org/extensions/test/data/
utils_unittest.js 51 AssertTrue(supe instanceof SuperClass);
61 AssertTrue(sub instanceof SuperClass);
62 AssertTrue(sub instanceof SubClass);
80 AssertTrue(subsub instanceof SuperClass);
81 AssertTrue(subsub instanceof SubClass);
82 AssertTrue(subsub instanceof SubSubClass);
  /external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
NoViableAltException.js 16 if ( this.input instanceof org.antlr.runtime.CharStream ) {
  /external/chromium_org/v8/test/mjsunit/harmony/
proxies.js     [all...]
  /external/chromium_org/v8/test/webkit/fast/js/
Promise-init.js 37 shouldBeTrue('promise instanceof Promise');
40 shouldBeTrue('resolve instanceof Function');
41 shouldBeTrue('reject instanceof Function');

Completed in 410 milliseconds

1 2 3 4 5 6 7 8 910