You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.
Expected result
We should be able to create a source map generator from a consumer that has mappings with only generated position.
Cause
When mappings are produced they get a source even if they did not originally have one. Code
When trying to create a source map generator form a consumer that has mappings with just the generated position we get an error.
Code to reproduce:
Actual result
Error:
original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.
Expected result
We should be able to create a source map generator from a consumer that has mappings with only generated position.
Cause
When mappings are produced they get a
source
even if they did not originally have one. Codeutil.computeSourceURL
will return.
if all components are null.The text was updated successfully, but these errors were encountered: