Closed dananderson closed 1 year ago
2.4.0
all
n/a
Assume there is a global variable named 'process' in the current realm. Assume the process package exports default and a symbol named process as well.
When using a default import:
import process from 'process'
When using a named import:
import { process } from 'process'
Both statements fail.
Error message: Imported binding shadows local variable
No parse or runtime Error.
It looks like this is a "feature" in JerryScript. Probably something was misunderstood. Attempting to change this in #5023
Patch landed. Thank you for the report.
JerryScript revision
2.4.0
Build platform
all
Build steps
n/a
Build log
n/a
Test case
Assume there is a global variable named 'process' in the current realm. Assume the process package exports default and a symbol named process as well.
When using a default import:
When using a named import:
Both statements fail.
Execution platform
all
Execution steps
n/a
Output
Error message: Imported binding shadows local variable
Backtrace
n/a
Expected behavior
No parse or runtime Error.