New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 829642 link

Starred by 10 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

DevTools: add way to compile and evaluate module using protocol

Project Member Reported by justinfagnani@google.com, Apr 6 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.45 Safari/537.36

Steps to reproduce the problem:
1. create a new snippet
2. add an import

What is the expected behavior?
The import works

What went wrong?
Syntax error

Did this work before? No 

Chrome version: 66.0.3359.45  Channel: n/a
OS Version: OS X 10.13.3
Flash Version:
 
Labels: Needs-Triage-M66
Cc: vamshi.kommuri@chromium.org
Labels: Triaged-ET Needs-Feedback
Thanks for filing the issue!

@justinfagnani: Could you please share a sample test file which helps us to triage the issue in a better way. Any further inputs from your end may be helpful.
Only one line is necessary. Any `import` or `export` will cause a syntax error as snippets aren't parsed as modules. ie:

    import * as foo from 'foo';
Project Member

Comment 4 by sheriffbot@chromium.org, Apr 6 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by l...@chromium.org, Apr 6 2018

Cc: -vamshi.kommuri@chromium.org l...@chromium.org
Owner: kozy@chromium.org
Status: Assigned (was: Unconfirmed)
Thanks for the report.  If snippets start supporting modules, it might makes sense to 'import' in console, too.
Summary: DevTools: add way to compile and evaluate module using protocol (was: Snippets can't contain imports, aren't modules)
Cc: kozy@chromium.org
 Issue 807528  has been merged into this issue.
Cc: vamshi.k...@techmahindra.com
 Issue 721664  has been merged into this issue.

Sign in to add a comment