New issue
Advanced search Search tips
Starred by 4 users

Issue metadata

Status: Fixed
Closed: Jun 2017
EstimatedDays: 1
NextAction: ----
OS: All
Pri: 1
Type: Bug

Sign in to add a comment

Issue 732765: Page with script type="module" crashes tab

Reported by, Jun 13 2017 Project Member

Issue description

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

Steps to reproduce the problem:
1. Enable #enable-javascript-harmony
2. Enable #enable-experimental-web-platform-features
3. Load

What is the expected behavior?
Page loads and outputs string of the type "Today is Monday." to console.

What went wrong?
Tab crashes in latest Canary build. In previous builds, it produced the following error:

Uncaught TypeError: Failed to execute 'resolveModuleCallback' on 'ScriptModule': Failed to load module script for module specifier '../utils/is-array.js'

Did this work before? No 

Chrome version: 61.0.3129.0 (Official Build) canary (64-bit)  Channel: canary
OS Version: OS X 10.12.5
Flash Version: 

This page is meant as a stress test for native ECMAScript module loading. It loads a modified version of the moment.js library and attempts to print the current day to the console.

Comment 1 by, Jun 13 2017

Status: Started (was: Unconfirmed)
Crash is due to various invariant in ModuleTreeLinker failing after

Comment 2 by, Jun 13 2017

Components: -Blink Blink>HTML>Script
EstimatedDays: 1
Labels: -Pri-2 -OS-Mac -Via-Wizard-Javascript OS-All Pri-1

Comment 3 by, Jun 13 2017

Here is another test case, in case it helps:

This one imports a modified three.js and renders a spinning wireframe.

Comment 4 by, Jun 14 2017 should fix the crash, but not the import failure.

Looks like this is hitting the edge case as demonstrated in:

which I expect to be addressed in

Comment 5 by, Jun 14 2017

Project Member
The following revision refers to this bug:

commit 9b2b6a840fc7c88f5c46b5a32d8d844d778f35e4
Author: Kouhei Ueno <>
Date: Wed Jun 14 09:58:37 2017

[ES6 modules] Fix obsolete assertions and add missing bailout to FetchDescendants

This CL :
1. Removes oesolete assertions after

2. Adds missing !HasValidContext bailout in FetchDescendants

Bug:  732765 ,  594639 
Change-Id: I806be731f528a1e8c1a2a9ac7f882dfaaf98e2ba
Reviewed-by: Kinuko Yasuda <>
Commit-Queue: Kouhei Ueno <>
Cr-Commit-Position: refs/heads/master@{#479341}

Comment 6 by, Jun 14 2017

Issue 732772 has been merged into this issue.

Comment 7 by, Jun 14 2017

Status: Fixed (was: Started)
crash is fixed

Comment 8 by, Jun 26 2017

Thanks for the crash fix, Kouhei!

I assume a full fix for the import failure will only come with ?

Should I file a different crbug for that?

Comment 9 by, Jun 26 2017  tracks the PR

Sign in to add a comment