This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed multiple ordering bugs involving unsafe a-temporal abstract values
- Loading branch information
Sapan Bhatia
committed
Aug 10, 2018
1 parent
3503c79
commit ad27aca
Showing
11 changed files
with
81 additions
and
11 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
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
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,11 @@ | ||
// expected RecoverableError: PP0004 | ||
|
||
let o = global.__abstractOrNull ? __abstractOrNull("object", "undefined") : undefined; | ||
let s = true; | ||
|
||
if (o != undefined) s = "foobar" in o; | ||
if (o != undefined) s = "foobar" in o; | ||
|
||
global.s = s; | ||
|
||
inspect = () => s; // Should be true |
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,11 @@ | ||
// expected RecoverableError: PP0004 | ||
|
||
let o = global.__abstractOrNull ? __abstractOrNull("object", "undefined") : undefined; | ||
let s = true; | ||
|
||
if (o != undefined) s = "foobar" instanceof o; | ||
if (o != undefined) s = "foobar" instanceof o; | ||
|
||
global.s = s; | ||
|
||
inspect = () => s; // Should be true |
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,9 @@ | ||
let o = global.__abstractOrNull ? __abstractOrNull("string", "undefined") : undefined; | ||
let s; | ||
|
||
if (o != undefined) s = 5 + o.length; | ||
if (o != undefined) s = 7 + o.length; | ||
|
||
global.s = s; | ||
|
||
inspect = () => s; |
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,9 @@ | ||
let o = global.__abstractOrNull ? __abstractOrNull("string", "undefined") : undefined; | ||
let s = "ok"; | ||
|
||
if (o != undefined) s = "X" + o.slice(3); | ||
if (o != undefined) s = "Y" + o.slice(3); | ||
|
||
global.s = s; | ||
|
||
inspect = () => s; |
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,9 @@ | ||
let o = global.__abstractOrNull ? __abstractOrNull("string", "undefined") : undefined; | ||
let s = "ok"; | ||
|
||
if (o != undefined) s = o.split(); | ||
if (o != undefined) s = o.split(); | ||
|
||
global.s = s; | ||
|
||
inspect = () => s; |