-
barraclough@apple.com authored
2009-05-12 Gavin Barraclough <barraclough@apple.com> Reviewed by Oliver Hunt. instanceof should throw if the constructor being tested does not implement 'HasInstance" (i.e. is a function). Instead we were returning false. * interpreter/Interpreter.cpp: (JSC::isInvalidParamForIn): (JSC::isInvalidParamForInstanceOf): (JSC::Interpreter::privateExecute): * jit/JITStubs.cpp: (JSC::JITStubs::cti_op_instanceof): * tests/mozilla/ecma_2/instanceof/instanceof-003.js: Fix broken test case. * tests/mozilla/ecma_2/instanceof/regress-7635.js: Remove broken test case (was an exact duplicate of a test in instanceof-003.js). LayoutTests: 2009-05-12 Gavin Barraclough <barraclough@apple.com> Reviewed by Oliver Hunt. Test was checked in with one test case disabled since it exposed an existing bug; enable it now. * fast/js/instance-of-immediates-expected.txt: * fast/js/resources/instance-of-immediates.js: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
65c43013