-
mark.lam@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=118997. Reviewed by Oliver Hunt. If we add an assertion in UnlinkedCodeBlock::expressionRangeForBytecodeOffset() to ensure that we are able to find an ExpressionRangeInfo for any given bytecode offset, the following tests will fails: fast/js/basic-strict-mode.html fast/js/mozilla/strict/8.7.2.html With this fix, those tests will no longer fail. * bytecompiler/NodesCodegen.cpp: (JSC::AssignResolveNode::emitBytecode): (JSC::ForInNode::emitBytecode): - Emit expression info before calls to emitResolveBaseForPut() when in strict mode. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
70165470