Skip to content

Javascript compilation broken #29443

Closed
Closed
@scottkunkel

Description

Godot version:

85a3382

OS/device including version:

win 10

Issue description:

scons platform=javascript target=release_debug tools=no optimize=size use_lto=yes -j8

JS optimizer error:
Unexpected token: operator (>) (line: 1637, col: 160, pos: 61425)

================================

 function() { return Module.resizeCanvasOnStart },
 function($0) { stringToUTF8(Module.locale, $0, 16); },
 function($0, $1, $2, $3) { const send_notification = cwrap('send_notification', null, ['number']); const notifications = arguments; (['mouseover', 'mouseleave', 'focus', 'blur']).forEach(function(event, index) { Module.canvas.addEventListener(event, send_notification.bind(null, notifications[index])); }); const update_clipboard = cwrap('update_clipboard', null, ['string']); window.addEventListener('paste', function(evt) { update_clipboard(evt.clipboardData.getData('text')); }, true); },
 function($0) { window.alert(UTF8ToString($0)); },
 function($0) { document.title = UTF8ToString($0); },
 function($0) { var text = UTF8ToString($0); if (!navigator.clipboard || !navigator.clipboard.writeText) return 1; navigator.clipboard.writeText(text).catch(e => { console.error("Setting OS clipboard is only possible from an input callback for the HTML5 plafrom. Exception:", e); }); return 0; },
                                                                                                                                                                ^
================================

Steps to reproduce:
build with emscripten in win10

Minimal reproduction project:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions