Comments (5)
This seems reasonable to me in principle. Any other JS objects we should consider?
cc @ljharb @mathiasbynens @surma @littledan
from html.
You can convert the Arguments exotic object to an Array first, as in
Array.from(arguments)
or[...arguments]
,
but this is inconvenient when the Arguments exotic object is nested deeply within some object being cloned.
is there anything that prevents the Array conversion from happening at the point of when its inserted into the object?
from html.
I'm confused. Sloppy mode arguments
contain some "magic" - should it be cloned too?
from html.
@zloirock I am fine with sloppy mode ("mapped") arguments objects continuing to throw, as it would be undesirable for them to maintain their mapping behaviour. I'm also fine with them becoming "unmapped" after clone.
from html.
I like the idea of it producing an unmapped Arguments object for both kinds of Arguments objects.
from html.
Related Issues (20)
- Silence Jake diagram conformance warnings on CI
- Discussing how to focus navigate display: contents elements that are focusable in CSS reading-flow HOT 5
- Upcoming WHATNOT meeting on 2024-08-01 HOT 1
- Example in parallelism section needs to "queue a task" to handle the promise
- Meeting 5 for joint OpenUI-WHATWG/HTML-CSSWG task force on styleable form controls HOT 4
- Allow explicitly indicating an `unchecked` state for an `<input type="checkbox">`. HOT 3
- Upcoming WHATNOT meeting on 2024-08-08 HOT 1
- Discussing how to focus navigate absolute position elements that are focusable in CSS reading-flow
- Rationale for when invalid value default differs from missing value default HOT 8
- Chinese Translation of HTML Standard Completed HOT 3
- Script element schematic diagram for async/defer is not readable in dark mode HOT 6
- inconsistent input label `:active` and `:hover` behavior HOT 1
- Document "can have its URL rewritten" incorrectly rejects file:// URL with only query changed HOT 4
- HTMLConstructor construction steps: Incorrect exception specified in step 11. HOT 3
- Upcoming WHATNOT meeting on 2024-08-15 HOT 1
- Upcoming WHATNOT meeting on 2024-08-22
- Meeting 6 for joint OpenUI-WHATWG/HTML-CSSWG task force on styleable form controls HOT 1
- Specify primitive appearance for <meter> HOT 1
- Proposal for adding volume attribute to the <audio> element in HTML HOT 1
- Add src attribute to <template> to load a template from file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html.