Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Calling a method on an included object is no longer automatically an
effect! To compensate: * Mutating array prototype methods cause an effect if the parent object is included * Assigning an object to another variable automatically reassigns all its properties
- Loading branch information
1 parent
0f9b30e
commit 6be48e2
Showing
39 changed files
with
111 additions
and
477 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
test/form/samples/conditional-expression-paths/_expected.js
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,16 @@ | ||
var unknownValue = globalFunction(); | ||
var foo = { x: () => {}, y: {} }; | ||
var baz = { x: () => console.log('effect') }; | ||
|
||
// unknown branch with side-effect | ||
var a2 = (unknownValue ? foo : baz).y.z; | ||
var b2 = (unknownValue ? foo : baz).x(); | ||
|
||
// known branch with side-effect | ||
var a4 = (baz).y.z; | ||
var b4 = (baz).y.z; | ||
var c4 = (baz).x(); | ||
var d4 = (baz).x(); | ||
var baz3 = {}; | ||
(baz3).y.z = 1; | ||
(baz3).y.z = 1; |
20 changes: 0 additions & 20 deletions
20
test/form/samples/conditional-expression-paths/_expected/amd.js
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
test/form/samples/conditional-expression-paths/_expected/cjs.js
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
test/form/samples/conditional-expression-paths/_expected/es.js
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
test/form/samples/conditional-expression-paths/_expected/iife.js
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
test/form/samples/conditional-expression-paths/_expected/system.js
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
test/form/samples/conditional-expression-paths/_expected/umd.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.