-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Replace .concat
with push and/or spread operator. NFC
#22067
base: main
Are you sure you want to change the base?
Conversation
.push
over .concat
in modules.mjs
. NFC.concat
with push and/or spread operator. NFC
src/library_openal.js
Outdated
@@ -842,7 +842,7 @@ var LibraryOpenAL = { | |||
case {{{ cDefs.AL_VELOCITY }}}: | |||
return AL.currentCtx.listener.velocity; | |||
case {{{ cDefs.AL_ORIENTATION }}}: | |||
return AL.currentCtx.listener.direction.concat(AL.currentCtx.listener.up); | |||
return AL.currentCtx.listener.direction + AL.currentCtx.listener.up; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are arrays so this changes the result, doesn't it? E.g.
> [0, 0, 0] + [1, 2, 3]
'0,0,01,2,3'
> [0, 0, 0].concat([1, 2, 3])
[ 0, 0, 0, 1, 2, 3 ]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, reverted.
@@ -1 +1 @@ | |||
4475 | |||
4553 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Odd that this increases code size?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting yes... maybe I'll split out the internal stuff and land that on its own.
No description provided.