JSFiddle - React, Tailwind, and code Playground
JavaScript
function NoStrict() {
// Used when debugging some streamline.js generated things
// can also end up relevant to JILS and CoffeeScript
// have not had a case where this actually was used in practice outside of streamline.js
return NoStrict.caller.toString().indexOf('_');
}
function Strict() {
"use strict";
return NoStrict();
}
try {
Strict();
console.log("Allowed to do that from strict mode");
}
catch(e) {
console.error("Error cannot do that from a strict mode invocation");
}