-
-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable fusion for impure externs #10432
Conversation
Change makes sense to me. @RealyUniqueName Could you check the failing tests? |
Diff for my SyncTube project (~9000 generated LoC). Looks fair for me. Can be improved with nodejs server:
- var events = JSON.parse(js_node_Fs.readFileSync(path,{ encoding : "utf8"}));
+ var text = js_node_Fs.readFileSync(path,{ encoding : "utf8"});
+ var events = JSON.parse(text);
- res.end("File " + js_node_Path.relative(server_HttpServer.dir,filePath) + " not found.");
+ var rel = js_node_Path.relative(server_HttpServer.dir,filePath);
+ res.end("File " + rel + " not found.");
- js_node_Fs.createReadStream(filePath,{ start : start, end : end}).pipe(res);
+ var videoStream = js_node_Fs.createReadStream(filePath,{ start : start, end : end});
+ videoStream.pipe(res);
- var proxy = server_HttpServer.proxyRequest(StringTools.replace(req.url,"/proxy?url=",""),req,res,function(proxyReq) {
+ var url = StringTools.replace(req.url,"/proxy?url=","");
+ var proxy = server_HttpServer.proxyRequest(url,req,res,function(proxyReq) {
- var proxy = (url1.protocol == "https:" ? js_node_Https.request : js_node_Http.request)({ host : url1.hostname, port : Std.parseInt(url1.port), path : url1.pathname + url1.search, method : req.method},function(proxyReq) {
+ var options = { host : url1.hostname, port : Std.parseInt(url1.port), path : url1.pathname + url1.search, method : req.method};
+ var request = url1.protocol == "https:" ? js_node_Https.request : js_node_Http.request;
+ var proxy = request(options,function(proxyReq) {
+ var isAdmin = this.config.localAdmins && req.socket.localAddress == ip;
var client = new Client(ws,req,id,name,0);
- client.setGroupFlag(ClientGroup.Admin,this.config.localAdmins && req.socket.localAddress == ip);
+ client.setGroupFlag(ClientGroup.Admin,isAdmin);
js client:
- if(smilesBtn.classList.toggle("active")) {
+ var isActive = smilesBtn.classList.toggle("active");
+ if(isActive) {
- if(client_Buttons.isElementEditable(e.target)) {
+ var target = e.target;
+ if(client_Buttons.isElementEditable(target)) {
onKeyDown: function(e) {
- switch(e.keyCode) {
+ var key = e.keyCode;
+ switch(key) {
- url = "" + protocol + "//" + $global.location.hostname + ":" + $global.location.port + url;
+ var host = $global.location.hostname;
+ var port = $global.location.port;
+ url = "" + protocol + "//" + host + ":" + port + url;
- this.setItemElementType(this.videoItemsEl.children[pos],this.videoList.items[this.videoList.pos].isTemp);
+ var el = this.videoItemsEl.children[pos];
+ this.setItemElementType(el,this.videoList.items[this.videoList.pos].isTemp);
- return client_Settings.checkData(JSON.parse(client_Settings.storage.getItem("data")));
+ var data = JSON.parse(client_Settings.storage.getItem("data"));
+ return client_Settings.checkData(data);
- trackEl.track.mode = "showing";
+ var track = trackEl.track;
+ track.mode = "showing"; |
Also without Meta.NoClosure check: - js_node_Fs.writeFileSync("" + crashesFolder + "/" + (DateTools.format(new Date(),"%Y-%m-%d_%H_%M_%S") + "-" + type) + ".json",JSON.stringify(data,null,"\t"));
+ var name = DateTools.format(new Date(),"%Y-%m-%d_%H_%M_%S") + "-" + type;
+ js_node_Fs.writeFileSync("" + crashesFolder + "/" + name + ".json",JSON.stringify(data,null,"\t"));
- window.visualViewport.addEventListener("resize",function(e) {
+ var viewport = window.visualViewport;
+ viewport.addEventListener("resize",function(e) { Without |
Thank you! |
Pretty scary bug, i think.
There is 5 test failures:
Please review this test and tryHaxeStack js impl, because diff change seems like a fix for Haxe code:
Haxe tryHaxeStack function
And unit.js diff for her:
closes #9943