-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(engine): supporting objects with null prototype in iterators (#1152)
* fix(engine): supporting objects with null prototype in iterators * fix(engine): making sure commas are inserted in toString * test(engine): testing for each fix * test(engine): removing jest test
- Loading branch information
1 parent
b414c3c
commit 7c5f264
Showing
5 changed files
with
38 additions
and
4 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
5 changes: 5 additions & 0 deletions
5
...ation-karma/test/template/directive-for-each/x/arrayNullPrototype/arrayNullPrototype.html
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,5 @@ | ||
<template> | ||
<template for:each={items} for:item="item"> | ||
<span key={item.id}>{item.text}</span> | ||
</template> | ||
</template> |
10 changes: 10 additions & 0 deletions
10
...gration-karma/test/template/directive-for-each/x/arrayNullPrototype/arrayNullPrototype.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,10 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class RenderArrayNullPrototype extends LightningElement { | ||
get items() { | ||
const first = Object.create(null); | ||
first.id = 'id'; | ||
first.text = 'text'; | ||
return [first]; | ||
} | ||
} |