@@ -1995,23 +1995,20 @@ namespace Js
1995
1995
else
1996
1996
{
1997
1997
// We do not own the memory passed into DefaultLoadScriptUtf8. We need to save it so we copy the memory.
1998
- if (*ppSourceInfo == nullptr )
1999
- {
2000
1998
#ifndef NTBUILD
2001
- if (loadScriptFlag & LoadScriptFlag_ExternalArrayBuffer)
2002
- {
2003
- *ppSourceInfo = Utf8SourceInfo::NewWithNoCopy (this ,
2004
- script, (int )length, cb, pSrcInfo, isLibraryCode,
2005
- scriptSource);
2006
- }
2007
- else
1999
+ if (loadScriptFlag & LoadScriptFlag_ExternalArrayBuffer)
2000
+ {
2001
+ *ppSourceInfo = Utf8SourceInfo::NewWithNoCopy (this ,
2002
+ script, (int )length, cb, pSrcInfo, isLibraryCode,
2003
+ scriptSource);
2004
+ }
2005
+ else
2008
2006
#endif
2009
- {
2010
- // the 'length' here is not correct - we will get the length from the parser - however parser hasn't done yet.
2011
- // Once the parser is done we will update the utf8sourceinfo's lenght correctly with parser's
2012
- *ppSourceInfo = Utf8SourceInfo::New (this , script,
2013
- (int )length, cb, pSrcInfo, isLibraryCode);
2014
- }
2007
+ {
2008
+ // The 'length' here is not correct (we will get the length from the parser) however parser isn't done yet.
2009
+ // Once the parser is done we will update the utf8sourceinfo's length correctly
2010
+ *ppSourceInfo = Utf8SourceInfo::New (this , script,
2011
+ (int )length, cb, pSrcInfo, isLibraryCode);
2015
2012
}
2016
2013
}
2017
2014
}
0 commit comments