-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1.8>1.9] [MERGE #4683 @obastemur] ch: use copy instead of direct sou…
…rmap cache Merge pull request #4683 from obastemur:fix_m2free In case we load the same cached source file twice, ch won't track that and free the buffer twice. Originally reported by OSS-FUZZ OS#15921043
- Loading branch information
Showing
4 changed files
with
120 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//------------------------------------------------------------------------------------------------------- | ||
// Copyright (C) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
//------------------------------------------------------------------------------------------------------- | ||
|
||
WScript.RegisterModuleSource('a.js', " "); | ||
WScript.LoadScriptFile('a.js'); | ||
WScript.LoadScriptFile('a.js'); | ||
WScript.RegisterModuleSource('b.js', "import * as foo from 'a.js'"); | ||
WScript.LoadScriptFile('b.js', "module"); | ||
WScript.LoadScriptFile('b.js', "module"); | ||
print('pass'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters