Skip to content
Snippets Groups Projects
Commit eedbf4cf authored by Leo Balter's avatar Leo Balter Committed by Rick Waldron
Browse files

Generate tests

parent 5f88a929
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ async function * f() { ...@@ -38,7 +38,7 @@ async function * f() {
return await import('./eval-gtbndng-indirect-update-dflt_FIXTURE.js'); return await import('./eval-gtbndng-indirect-update-dflt_FIXTURE.js');
} }
f().next().then(imported => { f().next().then(({value: imported}) => {
assert.sameValue(imported.default(), 1); assert.sameValue(imported.default(), 1);
assert.sameValue(imported.default, 2); assert.sameValue(imported.default, 2);
......
...@@ -39,7 +39,7 @@ async function * f() { ...@@ -39,7 +39,7 @@ async function * f() {
return await import('./eval-gtbndng-indirect-update_FIXTURE.js'); return await import('./eval-gtbndng-indirect-update_FIXTURE.js');
} }
f().next().then(imported => { f().next().then(({value: imported}) => {
assert.sameValue(imported.x, 1); assert.sameValue(imported.x, 1);
......
...@@ -30,7 +30,7 @@ async function * f() { ...@@ -30,7 +30,7 @@ async function * f() {
return await import('./module-code_FIXTURE.js'); return await import('./module-code_FIXTURE.js');
} }
f().next().then(imported => { f().next().then(({value: imported}) => {
assert.sameValue(imported.default, 42); assert.sameValue(imported.default, 42);
assert.sameValue(imported.x, 'Test262'); assert.sameValue(imported.x, 'Test262');
......
...@@ -26,7 +26,7 @@ async function * f() { ...@@ -26,7 +26,7 @@ async function * f() {
return await import('./dynamic-import-module_FIXTURE.js')['then'](x => x); return await import('./dynamic-import-module_FIXTURE.js')['then'](x => x);
} }
f().next().then(imported => { f().next().then(({value: imported}) => {
assert.sameValue(imported.x, 1); assert.sameValue(imported.x, 1);
......
...@@ -26,7 +26,7 @@ async function * f() { ...@@ -26,7 +26,7 @@ async function * f() {
return await import('./dynamic-import-module_FIXTURE.js'); return await import('./dynamic-import-module_FIXTURE.js');
} }
f().next().then(imported => { f().next().then(({value: imported}) => {
assert.sameValue(imported.x, 1); assert.sameValue(imported.x, 1);
......
...@@ -48,7 +48,7 @@ async function * f() { ...@@ -48,7 +48,7 @@ async function * f() {
return await import(obj); return await import(obj);
} }
f().next().then(imported => { f().next().then(({value: imported}) => {
assert.sameValue(imported.default, 42); assert.sameValue(imported.default, 42);
assert.sameValue(imported.x, 'Test262'); assert.sameValue(imported.x, 'Test262');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment