Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
76522624
Commit
76522624
authored
Feb 24, 2019
by
Leon Krause
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use stdout/-err for all messages in HTML5 platform
parent
81554dac
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
audio_driver_javascript.cpp
platform/javascript/audio_driver_javascript.cpp
+1
-1
http_request.js
platform/javascript/http_request.js
+3
-3
javascript_eval.cpp
platform/javascript/javascript_eval.cpp
+2
-2
os_javascript.cpp
platform/javascript/os_javascript.cpp
+2
-2
No files found.
platform/javascript/audio_driver_javascript.cpp
View file @
76522624
...
...
@@ -209,7 +209,7 @@ Error AudioDriverJavaScript::capture_start() {
}
function
gotMediaInputError
(
e
)
{
console
.
log
(
e
);
out
(
e
);
}
if
(
navigator
.
mediaDevices
.
getUserMedia
)
{
...
...
platform/javascript/http_request.js
View file @
76522624
...
...
@@ -82,7 +82,7 @@ var GodotHTTPRequest = {
godot_xhr_send_string
:
function
(
xhrId
,
strPtr
)
{
if
(
!
strPtr
)
{
console
.
warn
(
"Failed to send string per XHR: null pointer"
);
err
(
"Failed to send string per XHR: null pointer"
);
return
;
}
GodotHTTPRequest
.
requests
[
xhrId
].
send
(
UTF8ToString
(
strPtr
));
...
...
@@ -90,11 +90,11 @@ var GodotHTTPRequest = {
godot_xhr_send_data
:
function
(
xhrId
,
ptr
,
len
)
{
if
(
!
ptr
)
{
console
.
warn
(
"Failed to send data per XHR: null pointer"
);
err
(
"Failed to send data per XHR: null pointer"
);
return
;
}
if
(
len
<
0
)
{
console
.
warn
(
"Failed to send data per XHR: buffer length less than 0"
);
err
(
"Failed to send data per XHR: buffer length less than 0"
);
return
;
}
GodotHTTPRequest
.
requests
[
xhrId
].
send
(
HEAPU8
.
subarray
(
ptr
,
ptr
+
len
));
...
...
platform/javascript/javascript_eval.cpp
View file @
76522624
...
...
@@ -69,7 +69,7 @@ Variant JavaScript::eval(const String &p_code, bool p_use_global_exec_context) {
eval_ret
=
eval
(
UTF8ToString
(
CODE
));
}
}
catch
(
e
)
{
console
.
warn
(
e
);
err
(
e
);
eval_ret
=
null
;
}
...
...
@@ -97,7 +97,7 @@ Variant JavaScript::eval(const String &p_code, bool p_use_global_exec_context) {
if
(
array_ptr
!==
0
)
{
_free
(
array_ptr
)
}
console
.
warn
(
e
);
err
(
e
);
// fall through
}
break
;
...
...
platform/javascript/os_javascript.cpp
View file @
76522624
...
...
@@ -986,8 +986,8 @@ bool OS_JavaScript::main_loop_iterate() {
if
(
sync_wait_time
<
0
)
{
/* clang-format off */
EM_ASM
(
FS
.
syncfs
(
function
(
err
)
{
if
(
err
)
{
console
.
warn
(
'
Failed
to
save
IDB
file
system
:
'
+
er
r
.
message
);
}
FS
.
syncfs
(
function
(
err
or
)
{
if
(
err
or
)
{
err
(
'
Failed
to
save
IDB
file
system
:
'
+
erro
r
.
message
);
}
});
);
/* clang-format on */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment