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
Copy file name to clipboardExpand all lines: src/parseTools.js
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1164,15 +1164,16 @@ function addReadyPromiseAssertions(promise) {
1164
1164
// Also warn on onRuntimeInitialized which might be a common pattern with
1165
1165
// older MODULARIZE-using codebases.
1166
1166
properties.push('onRuntimeInitialized');
1167
-
returnproperties.map((property)=>{
1168
-
constwarningEnding=`${property} on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js`;
1169
-
return`
1170
-
if (!Object.getOwnPropertyDescriptor(${promise}, '${property}')) {
constwarningEnding=' on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js';
1168
+
constres=JSON.stringify(properties);
1169
+
returnres+`.forEach((prop) => {
1170
+
if (!Object.getOwnPropertyDescriptor(${promise}, prop)) {
0 commit comments