Lines Matching full:scripts
34 // may hold on to old copies of scripts (see bug 1641).
36 // Note: this test checks that that the number of scripts reported as native
37 // by Debug.scripts() is the same as a number of core native scripts.
38 // Native scripts that are added by --harmony-shipping are classified
39 // as 'experimental', but are still returned by Debug.scripts(), so
54 var scripts = Debug.scripts();
55 for (i = 0; i < scripts.length; i++) {
56 if (scripts[i].type == Debug.ScriptType.Native) {
57 if (scripts[i].name) {
58 // TODO(1641): Remove check for equally named native scripts once the
60 if (!named_native_names[scripts[i].name]) {
61 named_native_names[scripts[i].name] = true;
65 } else if (scripts[i].type == Debug.ScriptType.Extension) {
67 } else if (scripts[i].type == Debug.ScriptType.Normal) {
70 assertUnreachable('Unexpected type ' + scripts[i].type);
74 // This has to be updated if the number of native scripts change.