Reviewed by Maciej.
[WebKit-https.git] / JavaScriptCore / kjs / nodes.cpp
index be745c39f50e7226ea41cf29307b40c97d8fde13..6e8e1614e66ce06dc27e084aa645d1697adbac6b 100644 (file)
@@ -4402,13 +4402,12 @@ Completion TryNode::execute(ExecState *exec)
 
 FunctionBodyNode::FunctionBodyNode(SourceElements* children)
     : BlockNode(children)
-    , m_sourceURL(lexer().sourceURL())
+    , m_sourceURL(parser().sourceURL())
     , m_sourceId(parser().sourceId())
     , m_initializedDeclarationStacks(false)
     , m_initializedSymbolTable(false)
     , m_optimizedResolveNodes(false)
 {
-  setLoc(-1, -1);
 }
 
 void FunctionBodyNode::initializeDeclarationStacks(ExecState* exec)