From 996750a33739736272e55c0fadcdb320eb50e67a Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Sun, 7 Jul 2024 21:51:20 +0300 Subject: [PATCH 1/6] chore: Add license --- LICENSE.md | 325 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 325 insertions(+) create mode 100644 LICENSE.md diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 000000000..be0e9763f --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,325 @@ +# Mozilla Public License Version 2.0 + +## 1. Definitions + +### 1.### 1. “Contributor” + +means each individual or legal entity that creates, contributes to the creation +of, or owns Covered Software. + +### 1.2. “Contributor Version” + +means the combination of the Contributions of others (if any) used by a +Contributor and that particular Contributor’s Contribution. + +### 1.3. “Contribution” + +means Covered Software of a particular Contributor. + +### 1.4. “Covered Software” + +means Source Code Form to which the initial Contributor has attached the notice +in Exhibit A, the Executable Form of such Source Code Form, and Modifications of +such Source Code Form, in each case including portions thereof. + +### 1.5. “Incompatible With Secondary Licenses” + +means a. that the initial Contributor has attached the notice described in +Exhibit B to the Covered Software; or b. that the Covered Software was made +available under the terms of version ### 1.1 or earlier of the License, but not +also under the terms of a Secondary License. + +### 1.6. “Executable Form" + +means any form of the work other than Source Code Form. + +### 1.7. “Larger Work” + +means a work that combines Covered Software with other material, in a separate +file or files, that is not Covered Software. + +### 1.8. “License” + +means this document. + +### 1.9. “Licensable” + +means having the right to grant, to the maximum extent possible, whether at the +time of the initial grant or subsequently, any and all of the rights conveyed by +this License. + +### 1.10. “Modifications” + +means any of the following: + + a. any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or + + b. any new file in Source Code Form that contains any Covered Software. + +### 1.11. “Patent Claims” of a Contributor + +means any patent claim(s), including without limitation, method, process, and +apparatus claims, in any patent Licensable by such Contributor that would be +infringed, but for the grant of the License, by the making, using, selling, +offering for sale, having made, import, or transfer of either its Contributions +or its Contributor Version. + +### 1.12. “Secondary License” + +means either the GNU General Public License, Version 2.0, the GNU Lesser General +Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, +or any later versions of those licenses. + +### 1.13. “Source Code Form” + +means the form of the work preferred for making modifications. + +### 1.14. “You” (or “Your”) + +means an individual or a legal entity exercising rights under this License. For +legal entities, “You” includes any entity that controls, is controlled by, or is +under common control with You. For purposes of this definition, “control” means +(a) the power, direct or indirect, to cause the direction or management of such +entity, whether by contract or otherwise, or (b) ownership of more than fifty +percent (50%) of the outstanding shares or beneficial ownership of such entity. + +## 2. License Grants and Conditions + +### 2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive +license: + + under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and + + under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. + +### 2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution become +effective for each Contribution on the date the Contributor first distributes +such Contribution. + +### 2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under this +License. No additional rights or licenses will be implied from the distribution +or licensing of Covered Software under this License. Notwithstanding Section +2.1(b) above, no patent license is granted by a Contributor: + + for any code that a Contributor has removed from Covered Software; or + + for infringements caused by: (i) Your and any other third party’s modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or + + under Patent Claims infringed by Covered Software in the absence of its Contributions. + +This License does not grant any rights in the trademarks, service marks, or +logos of any Contributor (except as may be necessary to comply with the notice +requirements in Section 3.4). + +### 2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to distribute +the Covered Software under a subsequent version of this License (see Section +10.2) or under the terms of a Secondary License (if permitted under the terms of +Section 3.3). + +### 2.5. Representation + +Each Contributor represents that the Contributor believes its Contributions are +its original creation(s) or it has sufficient rights to grant the rights to its +Contributions conveyed by this License. + +### 2.6. Fair Use + +This License is not intended to limit any rights You have under applicable +copyright doctrines of fair use, fair dealing, or other equivalents. + +### 2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in +Section 2.1. + +## 3. Responsibilities + +### 3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under the +terms of this License. You must inform recipients that the Source Code Form of +the Covered Software is governed by the terms of this License, and how they can +obtain a copy of this License. You may not attempt to alter or restrict the +recipients’ rights in the Source Code Form. + +### 3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + + such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable + means in a timely manner, at a charge no more than the cost of distribution to the recipient; and + + You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients’ rights in the Source Code Form under this License. + +### 3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, provided +that You also comply with the requirements of this License for the Covered +Software. If the Larger Work is a combination of Covered Software with a work +governed by one or more Secondary Licenses, and the Covered Software is not +Incompatible With Secondary Licenses, this License permits You to additionally +distribute such Covered Software under the terms of such Secondary License(s), +so that the recipient of the Larger Work may, at their option, further +distribute the Covered Software under the terms of either this License or such +Secondary License(s). + +### 3.4. Notices + +You may not remove or alter the substance of any license notices (including +copyright notices, patent notices, disclaimers of warranty, or limitations of +liability) contained within the Source Code Form of the Covered Software, except +that You may alter any license notices to the extent required to remedy known +factual inaccuracies. + +### 3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, indemnity +or liability obligations to one or more recipients of Covered Software. However, +You may do so only on Your own behalf, and not on behalf of any Contributor. You +must make it absolutely clear that any such warranty, support, indemnity, or +liability obligation is offered by You alone, and You hereby agree to indemnify +every Contributor for any liability incurred by such Contributor as a result of +warranty, support, indemnity or liability terms You offer. You may include +additional disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +## 4. Inability to Comply Due to Statute or Regulation + +If it is impossible for You to comply with any of the terms of this License with +respect to some or all of the Covered Software due to statute, judicial order, +or regulation then You must: (a) comply with the terms of this License to the +maximum extent possible; and (b) describe the limitations and the code they +affect. Such description must be placed in a text file included with all +distributions of the Covered Software under this License. Except to the extent +prohibited by statute or regulation, such description must be sufficiently +detailed for a recipient of ordinary skill to be able to understand it. + +## 5. Termination + +5.1. The rights granted under this License will terminate automatically if You +fail to comply with any of its terms. However, if You become compliant, then the +rights granted under this License from a particular Contributor are reinstated +(a) provisionally, unless and until such Contributor explicitly and finally +terminates Your grants, and (b) on an ongoing basis, if such Contributor fails +to notify You of the non-compliance by some reasonable means prior to 60 days +after You have come back into compliance. Moreover, Your grants from a +particular Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the first +time You have received notice of non-compliance with this License from such +Contributor, and You become compliant prior to 30 days after Your receipt of the +notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, counter-claims, and +cross-claims) alleging that a Contributor Version directly or indirectly +infringes any patent, then the rights granted to You by any and all Contributors +for the Covered Software under Section 2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user +license agreements (excluding distributors and resellers) which have been +validly granted by You or Your distributors under this License prior to +termination shall survive termination. + +## 6. Disclaimer of Warranty + + +Covered Software is provided under this License on an “as is” basis, without +warranty of any kind, either expressed, implied, or statutory, including, +without limitation, warranties that the Covered Software is free of defects, +merchantable, fit for a particular purpose or non-infringing. The entire risk as +to the quality and performance of the Covered Software is with You. Should any +Covered Software prove defective in any respect, You (not any Contributor) +assume the cost of any necessary servicing, repair, or correction. This +disclaimer of warranty constitutes an essential part of this License. No use of +any Covered Software is authorized under this License except under this +disclaimer. + + +## 7. Limitation of Liability + + +Under no circumstances and under no legal theory, whether tort (including +negligence), contract, or otherwise, shall any Contributor, or anyone who +distributes Covered Software as permitted above, be liable to You for any +direct, indirect, special, incidental, or consequential damages of any character +including, without limitation, damages for lost profits, loss of goodwill, work +stoppage, computer failure or malfunction, or any and all other commercial +damages or losses, even if such party shall have been informed of the +possibility of such damages. This limitation of liability shall not apply to +liability for death or personal injury resulting from such party’s negligence to +the extent applicable law prohibits such limitation. Some jurisdictions do not +allow the exclusion or limitation of incidental or consequential damages, so +this exclusion and limitation may not apply to You. + + +## 8. Litigation + +Any litigation relating to this License may be brought only in the courts of a +jurisdiction where the defendant maintains its principal place of business and +such litigation shall be governed by laws of that jurisdiction, without +reference to its conflict-of-law provisions. Nothing in this Section shall +prevent a party’s ability to bring cross-claims or counter-claims. + +## 9. Miscellaneous + +This License represents the complete agreement concerning the subject matter +hereof. If any provision of this License is held to be unenforceable, such +provision shall be reformed only to the extent necessary to make it enforceable. +Any law or regulation which provides that the language of a contract shall be +construed against the drafter shall not be used to construe this License against +a Contributor. + +## 10. Versions of the License + +### 10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section 10.3, +no one other than the license steward has the right to modify or publish new +versions of this License. Each version will be given a distinguishing version +number. + +### 10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version of the +License under which You originally received the Covered Software, or under the +terms of any subsequent version published by the license steward. + +### 10.3. Modified Versions + +If you create software not governed by this License, and you want to create a +new license for such software, you may create and use a modified version of this +License if you rename the license and remove any references to the name of the +license steward (except to note that such modified license differs from this +License). + +### 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses + +If You choose to distribute Source Code Form that is Incompatible With Secondary +Licenses under the terms of this version of the License, the notice described in +Exhibit B of this License must be attached. + +## Exhibit A - Source Code Form License Notice + +> This Source Code Form is subject to the terms of the Mozilla Public License, +> v. 2.0. If a copy of the MPL was not distributed with this file, You can +> obtain one at https://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular file, then +You may include the notice in a location (such as a LICENSE file in a relevant +directory) where a recipient would be likely to look for such a notice. + +You may add additional accurate notices of copyright ownership. + +## Exhibit B - “Incompatible With Secondary Licenses” Notice + +> This Source Code Form is “Incompatible With Secondary Licenses”, as defined by +> the Mozilla Public License, v. 2.0. From 387177431037575744292a287c9d2c44be26c7ab Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Sun, 7 Jul 2024 21:54:23 +0300 Subject: [PATCH 2/6] fix --- LICENSE.md | 48 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 15 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index be0e9763f..e86d39304 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -2,7 +2,7 @@ ## 1. Definitions -### 1.### 1. “Contributor” +### 1.1. “Contributor” means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. @@ -24,10 +24,13 @@ such Source Code Form, in each case including portions thereof. ### 1.5. “Incompatible With Secondary Licenses” -means a. that the initial Contributor has attached the notice described in -Exhibit B to the Covered Software; or b. that the Covered Software was made -available under the terms of version ### 1.1 or earlier of the License, but not -also under the terms of a Secondary License. +means + +a. that the initial Contributor has attached the notice described in Exhibit B +to the Covered Software; or + +b. that the Covered Software was made available under the terms of version 1.1 +or earlier of the License, but not also under the terms of a Secondary License. ### 1.6. “Executable Form" @@ -52,9 +55,10 @@ this License. means any of the following: - a. any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or +a. any file in Source Code Form that results from an addition to, deletion from, +or modification of the contents of Covered Software; or - b. any new file in Source Code Form that contains any Covered Software. +b. any new file in Source Code Form that contains any Covered Software. ### 1.11. “Patent Claims” of a Contributor @@ -90,9 +94,14 @@ percent (50%) of the outstanding shares or beneficial ownership of such entity. Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: - under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and +a. under intellectual property rights (other than patent or trademark) +Licensable by such Contributor to use, reproduce, make available, modify, +display, perform, distribute, and otherwise exploit its Contributions, either on +an unmodified basis, with Modifications, or as part of a Larger Work; and - under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. +b. under Patent Claims of such Contributor to make, use, sell, offer for sale, +have made, import, and otherwise transfer either its Contributions or its +Contributor Version. ### 2.2. Effective Date @@ -107,11 +116,14 @@ License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: - for any code that a Contributor has removed from Covered Software; or +a. for any code that a Contributor has removed from Covered Software; or - for infringements caused by: (i) Your and any other third party’s modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or +b. for infringements caused by: (i) Your and any other third party’s +modifications of Covered Software, or (ii) the combination of its Contributions +with other software (except as part of its Contributor Version); or - under Patent Claims infringed by Covered Software in the absence of its Contributions. +c. under Patent Claims infringed by Covered Software in the absence of its +Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice @@ -155,10 +167,16 @@ recipients’ rights in the Source Code Form. If You distribute Covered Software in Executable Form then: - such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable - means in a timely manner, at a charge no more than the cost of distribution to the recipient; and +a. such Covered Software must also be made available in Source Code Form, as +described in Section 3.1, and You must inform recipients of the Executable Form +how they can obtain a copy of such Source Code Form by reasonable means in a +timely manner, at a charge no more than the cost of distribution to the +recipient; and - You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients’ rights in the Source Code Form under this License. +b. You may distribute such Executable Form under the terms of this License, or +sublicense it under different terms, provided that the license for the +Executable Form does not attempt to limit or alter the recipients’ rights in the +Source Code Form under this License. ### 3.3. Distribution of a Larger Work From d6747e51b6729f548f9605ef6be439ffa297a0be Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Sun, 7 Jul 2024 21:56:09 +0300 Subject: [PATCH 3/6] bullets --- LICENSE.md | 60 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index e86d39304..ce65eb807 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -26,11 +26,12 @@ such Source Code Form, in each case including portions thereof. means -a. that the initial Contributor has attached the notice described in Exhibit B -to the Covered Software; or +- a. that the initial Contributor has attached the notice described in Exhibit B + to the Covered Software; or -b. that the Covered Software was made available under the terms of version 1.1 -or earlier of the License, but not also under the terms of a Secondary License. +- b. that the Covered Software was made available under the terms of version 1.1 + or earlier of the License, but not also under the terms of a Secondary + License. ### 1.6. “Executable Form" @@ -55,10 +56,10 @@ this License. means any of the following: -a. any file in Source Code Form that results from an addition to, deletion from, -or modification of the contents of Covered Software; or +- a. any file in Source Code Form that results from an addition to, deletion + from, or modification of the contents of Covered Software; or -b. any new file in Source Code Form that contains any Covered Software. +- b. any new file in Source Code Form that contains any Covered Software. ### 1.11. “Patent Claims” of a Contributor @@ -94,14 +95,14 @@ percent (50%) of the outstanding shares or beneficial ownership of such entity. Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: -a. under intellectual property rights (other than patent or trademark) -Licensable by such Contributor to use, reproduce, make available, modify, -display, perform, distribute, and otherwise exploit its Contributions, either on -an unmodified basis, with Modifications, or as part of a Larger Work; and +- a. under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, modify, + display, perform, distribute, and otherwise exploit its Contributions, either + on an unmodified basis, with Modifications, or as part of a Larger Work; and -b. under Patent Claims of such Contributor to make, use, sell, offer for sale, -have made, import, and otherwise transfer either its Contributions or its -Contributor Version. +- b. under Patent Claims of such Contributor to make, use, sell, offer for sale, + have made, import, and otherwise transfer either its Contributions or its + Contributor Version. ### 2.2. Effective Date @@ -116,14 +117,15 @@ License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: -a. for any code that a Contributor has removed from Covered Software; or +- a. for any code that a Contributor has removed from Covered Software; or -b. for infringements caused by: (i) Your and any other third party’s -modifications of Covered Software, or (ii) the combination of its Contributions -with other software (except as part of its Contributor Version); or +- b. for infringements caused by: (i) Your and any other third party’s + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor Version); + or -c. under Patent Claims infringed by Covered Software in the absence of its -Contributions. +- c. under Patent Claims infringed by Covered Software in the absence of its + Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice @@ -167,16 +169,16 @@ recipients’ rights in the Source Code Form. If You distribute Covered Software in Executable Form then: -a. such Covered Software must also be made available in Source Code Form, as -described in Section 3.1, and You must inform recipients of the Executable Form -how they can obtain a copy of such Source Code Form by reasonable means in a -timely manner, at a charge no more than the cost of distribution to the -recipient; and +- a. such Covered Software must also be made available in Source Code Form, as + described in Section 3.1, and You must inform recipients of the Executable + Form how they can obtain a copy of such Source Code Form by reasonable means + in a timely manner, at a charge no more than the cost of distribution to the + recipient; and -b. You may distribute such Executable Form under the terms of this License, or -sublicense it under different terms, provided that the license for the -Executable Form does not attempt to limit or alter the recipients’ rights in the -Source Code Form under this License. +- b. You may distribute such Executable Form under the terms of this License, or + sublicense it under different terms, provided that the license for the + Executable Form does not attempt to limit or alter the recipients’ rights in + the Source Code Form under this License. ### 3.3. Distribution of a Larger Work From 443987e30a3c300cf1f0a38edbc3d54ddd20433c Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Sun, 7 Jul 2024 22:42:13 +0300 Subject: [PATCH 4/6] chore: Add license notices --- nova_cli/src/main.rs | 4 ++++ nova_vm/build.rs | 4 ++++ nova_vm/src/ecmascript.rs | 4 ++++ nova_vm/src/ecmascript/abstract_operations.rs | 4 ++++ .../abstract_operations/operations_on_iterator_objects.rs | 4 ++++ .../abstract_operations/operations_on_objects.rs | 4 ++++ .../abstract_operations/testing_and_comparison.rs | 4 ++++ .../src/ecmascript/abstract_operations/type_conversion.rs | 4 ++++ nova_vm/src/ecmascript/builders.rs | 4 ++++ .../src/ecmascript/builders/builtin_function_builder.rs | 4 ++++ .../src/ecmascript/builders/ordinary_object_builder.rs | 4 ++++ nova_vm/src/ecmascript/builders/property_builder.rs | 4 ++++ nova_vm/src/ecmascript/builtins.rs | 4 ++++ nova_vm/src/ecmascript/builtins/arguments.rs | 4 ++++ nova_vm/src/ecmascript/builtins/array.rs | 4 ++++ .../src/ecmascript/builtins/array/abstract_operations.rs | 4 ++++ nova_vm/src/ecmascript/builtins/array/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/array_buffer.rs | 4 ++++ .../builtins/array_buffer/abstract_operations.rs | 4 ++++ nova_vm/src/ecmascript/builtins/array_buffer/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/bound_function.rs | 4 ++++ nova_vm/src/ecmascript/builtins/builtin_function.rs | 4 ++++ .../ecmascript/builtins/control_abstraction_objects.rs | 4 ++++ .../control_abstraction_objects/async_function_objects.rs | 4 ++++ .../async_function_objects/async_function_constructor.rs | 4 ++++ .../async_function_objects/async_function_prototype.rs | 4 ++++ .../async_generator_function_objects.rs | 4 ++++ .../async_generator_function_constructor.rs | 4 ++++ .../async_generator_function_prototype.rs | 4 ++++ .../async_generator_objects.rs | 4 ++++ .../generator_function_objects.rs | 4 ++++ .../generator_function_constructor.rs | 4 ++++ .../generator_function_prototype.rs | 4 ++++ .../control_abstraction_objects/generator_objects.rs | 4 ++++ .../builtins/control_abstraction_objects/iteration.rs | 4 ++++ .../iteration/async_from_sync_iterator_prototype.rs | 4 ++++ .../iteration/async_iterator_prototype.rs | 4 ++++ .../iteration/iterator_prototype.rs | 4 ++++ .../control_abstraction_objects/promise_objects.rs | 4 ++++ .../promise_objects/promise_abstract_operations.rs | 4 ++++ .../promise_capability_records.rs | 4 ++++ .../promise_reaction_records.rs | 4 ++++ .../promise_reject_function.rs | 4 ++++ .../promise_objects/promise_constructor.rs | 4 ++++ .../promise_objects/promise_prototype.rs | 4 ++++ nova_vm/src/ecmascript/builtins/data_view.rs | 4 ++++ nova_vm/src/ecmascript/builtins/data_view/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/date.rs | 4 ++++ nova_vm/src/ecmascript/builtins/date/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/ecmascript_function.rs | 4 ++++ nova_vm/src/ecmascript/builtins/embedder_object.rs | 4 ++++ nova_vm/src/ecmascript/builtins/embedder_object/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/error.rs | 4 ++++ nova_vm/src/ecmascript/builtins/error/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/finalization_registry.rs | 4 ++++ .../src/ecmascript/builtins/finalization_registry/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/fundamental_objects.rs | 4 ++++ .../builtins/fundamental_objects/boolean_objects.rs | 4 ++++ .../boolean_objects/boolean_constructor.rs | 4 ++++ .../boolean_objects/boolean_prototype.rs | 4 ++++ .../builtins/fundamental_objects/error_objects.rs | 4 ++++ .../error_objects/aggregate_error_constructors.rs | 4 ++++ .../error_objects/aggregate_error_prototypes.rs | 4 ++++ .../error_objects/error_constructor.rs | 4 ++++ .../fundamental_objects/error_objects/error_prototype.rs | 4 ++++ .../error_objects/native_error_constructors.rs | 4 ++++ .../error_objects/native_error_prototypes.rs | 4 ++++ .../builtins/fundamental_objects/function_objects.rs | 4 ++++ .../function_objects/function_constructor.rs | 4 ++++ .../function_objects/function_prototype.rs | 4 ++++ .../builtins/fundamental_objects/object_objects.rs | 4 ++++ .../object_objects/object_constructor.rs | 4 ++++ .../object_objects/object_prototype.rs | 4 ++++ .../builtins/fundamental_objects/symbol_objects.rs | 4 ++++ .../symbol_objects/symbol_constructor.rs | 4 ++++ .../symbol_objects/symbol_prototype.rs | 4 ++++ nova_vm/src/ecmascript/builtins/global_object.rs | 4 ++++ nova_vm/src/ecmascript/builtins/indexed_collections.rs | 4 ++++ .../builtins/indexed_collections/array_objects.rs | 4 ++++ .../array_objects/array_constructor.rs | 4 ++++ .../array_objects/array_iterator_objects.rs | 4 ++++ .../indexed_collections/array_objects/array_prototype.rs | 4 ++++ .../builtins/indexed_collections/typed_array_objects.rs | 4 ++++ .../typed_array_objects/typed_array_constructors.rs | 4 ++++ .../typed_array_objects/typed_array_intrinsic_object.rs | 4 ++++ nova_vm/src/ecmascript/builtins/keyed_collections.rs | 4 ++++ .../ecmascript/builtins/keyed_collections/map_objects.rs | 4 ++++ .../keyed_collections/map_objects/map_constructor.rs | 4 ++++ .../keyed_collections/map_objects/map_iterator_objects.rs | 4 ++++ .../keyed_collections/map_objects/map_prototype.rs | 4 ++++ .../ecmascript/builtins/keyed_collections/set_objects.rs | 4 ++++ .../keyed_collections/set_objects/set_constructor.rs | 4 ++++ .../keyed_collections/set_objects/set_iterator_objects.rs | 4 ++++ .../keyed_collections/set_objects/set_prototype.rs | 4 ++++ .../builtins/keyed_collections/weak_map_objects.rs | 4 ++++ .../weak_map_objects/weak_map_constructor.rs | 4 ++++ .../weak_map_objects/weak_map_prototype.rs | 4 ++++ .../builtins/keyed_collections/weak_set_objects.rs | 4 ++++ .../weak_set_objects/weak_set_constructor.rs | 4 ++++ .../weak_set_objects/weak_set_prototype.rs | 4 ++++ nova_vm/src/ecmascript/builtins/managing_memory.rs | 4 ++++ .../managing_memory/finalization_registry_objects.rs | 4 ++++ .../finalization_registry_constructor.rs | 4 ++++ .../finalization_registry_prototype.rs | 4 ++++ .../builtins/managing_memory/weak_ref_objects.rs | 4 ++++ .../weak_ref_objects/weak_ref_constructor.rs | 4 ++++ .../weak_ref_objects/weak_ref_prototype.rs | 4 ++++ nova_vm/src/ecmascript/builtins/map.rs | 4 ++++ nova_vm/src/ecmascript/builtins/map/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/module.rs | 4 ++++ nova_vm/src/ecmascript/builtins/module/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/numbers_and_dates.rs | 4 ++++ .../builtins/numbers_and_dates/bigint_objects.rs | 4 ++++ .../bigint_objects/bigint_constructor.rs | 4 ++++ .../numbers_and_dates/bigint_objects/bigint_prototype.rs | 4 ++++ .../ecmascript/builtins/numbers_and_dates/date_objects.rs | 4 ++++ .../numbers_and_dates/date_objects/date_constructor.rs | 4 ++++ .../numbers_and_dates/date_objects/date_prototype.rs | 4 ++++ .../ecmascript/builtins/numbers_and_dates/math_object.rs | 4 ++++ .../builtins/numbers_and_dates/number_objects.rs | 4 ++++ .../number_objects/number_constructor.rs | 4 ++++ .../numbers_and_dates/number_objects/number_prototype.rs | 4 ++++ nova_vm/src/ecmascript/builtins/ordinary.rs | 4 ++++ nova_vm/src/ecmascript/builtins/primitive_objects.rs | 4 ++++ nova_vm/src/ecmascript/builtins/promise.rs | 4 ++++ nova_vm/src/ecmascript/builtins/promise/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/proxy.rs | 4 ++++ nova_vm/src/ecmascript/builtins/proxy/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/reflection.rs | 4 ++++ .../ecmascript/builtins/reflection/proxy_constructor.rs | 4 ++++ .../src/ecmascript/builtins/reflection/reflect_object.rs | 4 ++++ nova_vm/src/ecmascript/builtins/regexp.rs | 4 ++++ .../src/ecmascript/builtins/regexp/abstract_operations.rs | 4 ++++ nova_vm/src/ecmascript/builtins/regexp/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/set.rs | 4 ++++ nova_vm/src/ecmascript/builtins/set/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/shared_array_buffer.rs | 4 ++++ .../src/ecmascript/builtins/shared_array_buffer/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/structured_data.rs | 4 ++++ .../builtins/structured_data/array_buffer_objects.rs | 4 ++++ .../array_buffer_objects/array_buffer_constructor.rs | 4 ++++ .../array_buffer_objects/array_buffer_prototype.rs | 4 ++++ .../ecmascript/builtins/structured_data/atomics_object.rs | 4 ++++ .../builtins/structured_data/data_view_objects.rs | 4 ++++ .../data_view_objects/data_view_constructor.rs | 4 ++++ .../data_view_objects/data_view_prototype.rs | 4 ++++ .../ecmascript/builtins/structured_data/json_object.rs | 4 ++++ .../structured_data/shared_array_buffer_objects.rs | 4 ++++ .../shared_array_buffer_constructor.rs | 4 ++++ .../shared_array_buffer_prototype.rs | 4 ++++ nova_vm/src/ecmascript/builtins/text_processing.rs | 4 ++++ .../ecmascript/builtins/text_processing/regexp_objects.rs | 4 ++++ .../text_processing/regexp_objects/regexp_constructor.rs | 4 ++++ .../text_processing/regexp_objects/regexp_prototype.rs | 4 ++++ .../regexp_objects/regexp_string_iterator_prototype.rs | 4 ++++ .../ecmascript/builtins/text_processing/string_objects.rs | 4 ++++ .../text_processing/string_objects/string_constructor.rs | 4 ++++ .../string_objects/string_iterator_objects.rs | 4 ++++ .../text_processing/string_objects/string_prototype.rs | 4 ++++ nova_vm/src/ecmascript/builtins/typed_array.rs | 4 ++++ nova_vm/src/ecmascript/builtins/typed_array/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/weak_map.rs | 4 ++++ nova_vm/src/ecmascript/builtins/weak_map/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/weak_ref.rs | 4 ++++ nova_vm/src/ecmascript/builtins/weak_ref/data.rs | 4 ++++ nova_vm/src/ecmascript/builtins/weak_set.rs | 4 ++++ nova_vm/src/ecmascript/builtins/weak_set/data.rs | 4 ++++ nova_vm/src/ecmascript/execution.rs | 4 ++++ nova_vm/src/ecmascript/execution/agent.rs | 4 ++++ nova_vm/src/ecmascript/execution/default_host_hooks.rs | 4 ++++ nova_vm/src/ecmascript/execution/environments.rs | 4 ++++ .../execution/environments/declarative_environment.rs | 4 ++++ .../execution/environments/function_environment.rs | 4 ++++ .../execution/environments/global_environment.rs | 4 ++++ .../execution/environments/module_environment.rs | 4 ++++ .../execution/environments/object_environment.rs | 4 ++++ .../execution/environments/private_environment.rs | 4 ++++ nova_vm/src/ecmascript/execution/execution_context.rs | 4 ++++ nova_vm/src/ecmascript/execution/realm.rs | 4 ++++ nova_vm/src/ecmascript/execution/realm/intrinsics.rs | 4 ++++ nova_vm/src/ecmascript/scripts_and_modules.rs | 4 ++++ nova_vm/src/ecmascript/scripts_and_modules/module.rs | 4 ++++ nova_vm/src/ecmascript/scripts_and_modules/script.rs | 4 ++++ nova_vm/src/ecmascript/syntax_directed_operations.rs | 4 ++++ .../syntax_directed_operations/function_definitions.rs | 4 ++++ .../syntax_directed_operations/miscellaneous.rs | 8 ++++++++ .../syntax_directed_operations/scope_analysis.rs | 4 ++++ .../statements_and_declarations.rs | 4 ++++ nova_vm/src/ecmascript/types.rs | 4 ++++ nova_vm/src/ecmascript/types/language.rs | 4 ++++ nova_vm/src/ecmascript/types/language/bigint.rs | 4 ++++ nova_vm/src/ecmascript/types/language/bigint/data.rs | 4 ++++ nova_vm/src/ecmascript/types/language/function.rs | 4 ++++ nova_vm/src/ecmascript/types/language/function/data.rs | 4 ++++ .../ecmascript/types/language/function/into_function.rs | 4 ++++ nova_vm/src/ecmascript/types/language/into_numeric.rs | 4 ++++ nova_vm/src/ecmascript/types/language/into_primitive.rs | 4 ++++ nova_vm/src/ecmascript/types/language/into_value.rs | 4 ++++ nova_vm/src/ecmascript/types/language/number.rs | 4 ++++ nova_vm/src/ecmascript/types/language/number/data.rs | 4 ++++ nova_vm/src/ecmascript/types/language/numeric.rs | 4 ++++ nova_vm/src/ecmascript/types/language/object.rs | 4 ++++ nova_vm/src/ecmascript/types/language/object/data.rs | 4 ++++ .../ecmascript/types/language/object/internal_methods.rs | 4 ++++ .../ecmascript/types/language/object/internal_slots.rs | 4 ++++ .../src/ecmascript/types/language/object/into_object.rs | 4 ++++ .../src/ecmascript/types/language/object/property_key.rs | 4 ++++ .../ecmascript/types/language/object/property_storage.rs | 4 ++++ nova_vm/src/ecmascript/types/language/primitive.rs | 4 ++++ nova_vm/src/ecmascript/types/language/string.rs | 4 ++++ nova_vm/src/ecmascript/types/language/string/data.rs | 4 ++++ nova_vm/src/ecmascript/types/language/symbol.rs | 4 ++++ nova_vm/src/ecmascript/types/language/symbol/data.rs | 4 ++++ nova_vm/src/ecmascript/types/language/value.rs | 4 ++++ nova_vm/src/ecmascript/types/spec.rs | 4 ++++ nova_vm/src/ecmascript/types/spec/data_block.rs | 4 ++++ nova_vm/src/ecmascript/types/spec/property_descriptor.rs | 4 ++++ nova_vm/src/ecmascript/types/spec/reference.rs | 4 ++++ nova_vm/src/engine.rs | 4 ++++ nova_vm/src/engine/bytecode.rs | 4 ++++ nova_vm/src/engine/bytecode/executable.rs | 4 ++++ nova_vm/src/engine/bytecode/instructions.rs | 4 ++++ nova_vm/src/engine/bytecode/iterator.rs | 4 ++++ nova_vm/src/engine/bytecode/vm.rs | 4 ++++ nova_vm/src/engine/small_integer.rs | 4 ++++ nova_vm/src/heap.rs | 5 ++++- nova_vm/src/heap/element_array.rs | 4 ++++ nova_vm/src/heap/heap_bits.rs | 4 ++++ nova_vm/src/heap/heap_constants.rs | 4 ++++ nova_vm/src/heap/heap_gc.rs | 4 ++++ nova_vm/src/heap/indexes.rs | 4 ++++ nova_vm/src/heap/object_entry.rs | 4 ++++ nova_vm/src/heap/regexp.rs | 1 - nova_vm/src/lib.rs | 4 +++- nova_vm/tests/object_prototype_tests.rs | 4 ++++ nova_vm/tests/sources/objectPrototype.test.js | 4 ++++ small_string/lib.rs | 4 ++++ tests/nova-harness.js | 4 ++++ tests/test262_runner.rs | 4 ++++ 239 files changed, 955 insertions(+), 3 deletions(-) delete mode 100644 nova_vm/src/heap/regexp.rs diff --git a/nova_cli/src/main.rs b/nova_cli/src/main.rs index 0107c4333..7c2cad131 100644 --- a/nova_cli/src/main.rs +++ b/nova_cli/src/main.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use clap::{Parser as ClapParser, Subcommand}; use nova_vm::ecmascript::{ execution::{agent::Options, initialize_host_defined_realm, Agent, DefaultHostHooks, Realm}, diff --git a/nova_vm/build.rs b/nova_vm/build.rs index cd4969689..16699b9b5 100644 --- a/nova_vm/build.rs +++ b/nova_vm/build.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use small_string::SmallString; use std::fs::File; use std::io::{self, prelude::*, BufReader}; diff --git a/nova_vm/src/ecmascript.rs b/nova_vm/src/ecmascript.rs index e53459772..8adeaf13e 100644 --- a/nova_vm/src/ecmascript.rs +++ b/nova_vm/src/ecmascript.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod abstract_operations; pub(crate) mod builders; pub mod builtins; diff --git a/nova_vm/src/ecmascript/abstract_operations.rs b/nova_vm/src/ecmascript/abstract_operations.rs index e84a82a52..a2d0a1758 100644 --- a/nova_vm/src/ecmascript/abstract_operations.rs +++ b/nova_vm/src/ecmascript/abstract_operations.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod operations_on_iterator_objects; pub(crate) mod operations_on_objects; pub(crate) mod testing_and_comparison; diff --git a/nova_vm/src/ecmascript/abstract_operations/operations_on_iterator_objects.rs b/nova_vm/src/ecmascript/abstract_operations/operations_on_iterator_objects.rs index 0a50aaf66..52660307f 100644 --- a/nova_vm/src/ecmascript/abstract_operations/operations_on_iterator_objects.rs +++ b/nova_vm/src/ecmascript/abstract_operations/operations_on_iterator_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! ## [7.4 Operations on Iterator Objects](https://tc39.es/ecma262/#sec-operations-on-iterator-objects) use super::{ diff --git a/nova_vm/src/ecmascript/abstract_operations/operations_on_objects.rs b/nova_vm/src/ecmascript/abstract_operations/operations_on_objects.rs index 0a25d2ed9..c6a14c03c 100644 --- a/nova_vm/src/ecmascript/abstract_operations/operations_on_objects.rs +++ b/nova_vm/src/ecmascript/abstract_operations/operations_on_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! ## [7.3 Operations on Objects](https://tc39.es/ecma262/#sec-operations-on-objects) use super::{ diff --git a/nova_vm/src/ecmascript/abstract_operations/testing_and_comparison.rs b/nova_vm/src/ecmascript/abstract_operations/testing_and_comparison.rs index 6f8a64cbe..664c01d8b 100644 --- a/nova_vm/src/ecmascript/abstract_operations/testing_and_comparison.rs +++ b/nova_vm/src/ecmascript/abstract_operations/testing_and_comparison.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! ## [7.2 Testing and Comparison Operations](https://tc39.es/ecma262/#sec-testing-and-comparison-operations) use crate::ecmascript::{ diff --git a/nova_vm/src/ecmascript/abstract_operations/type_conversion.rs b/nova_vm/src/ecmascript/abstract_operations/type_conversion.rs index e53106be4..6699e1e39 100644 --- a/nova_vm/src/ecmascript/abstract_operations/type_conversion.rs +++ b/nova_vm/src/ecmascript/abstract_operations/type_conversion.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! ## [7.1 Type Conversion](https://tc39.es/ecma262/#sec-type-conversion) //! //! The ECMAScript language implicitly performs automatic type conversion as diff --git a/nova_vm/src/ecmascript/builders.rs b/nova_vm/src/ecmascript/builders.rs index 709e4b39a..d1b63abc0 100644 --- a/nova_vm/src/ecmascript/builders.rs +++ b/nova_vm/src/ecmascript/builders.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod builtin_function_builder; pub(crate) mod ordinary_object_builder; pub(crate) mod property_builder; diff --git a/nova_vm/src/ecmascript/builders/builtin_function_builder.rs b/nova_vm/src/ecmascript/builders/builtin_function_builder.rs index 0fb1f370e..03ed29535 100644 --- a/nova_vm/src/ecmascript/builders/builtin_function_builder.rs +++ b/nova_vm/src/ecmascript/builders/builtin_function_builder.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builtins::{ diff --git a/nova_vm/src/ecmascript/builders/ordinary_object_builder.rs b/nova_vm/src/ecmascript/builders/ordinary_object_builder.rs index 34d30d80c..562beee65 100644 --- a/nova_vm/src/ecmascript/builders/ordinary_object_builder.rs +++ b/nova_vm/src/ecmascript/builders/ordinary_object_builder.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builtins::{Builtin, BuiltinFunction, BuiltinGetter, BuiltinIntrinsic}, diff --git a/nova_vm/src/ecmascript/builders/property_builder.rs b/nova_vm/src/ecmascript/builders/property_builder.rs index 830df40f1..7723c23ac 100644 --- a/nova_vm/src/ecmascript/builders/property_builder.rs +++ b/nova_vm/src/ecmascript/builders/property_builder.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ execution::Agent, diff --git a/nova_vm/src/ecmascript/builtins.rs b/nova_vm/src/ecmascript/builtins.rs index 9665c2cc5..4791edeca 100644 --- a/nova_vm/src/ecmascript/builtins.rs +++ b/nova_vm/src/ecmascript/builtins.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! # 10 Ordinary and Exotic Objects Behaviours //! //! Currently only contains code related to subsections 10.2, 10.3 and 10.4. diff --git a/nova_vm/src/ecmascript/builtins/arguments.rs b/nova_vm/src/ecmascript/builtins/arguments.rs index 9ee82613a..730859600 100644 --- a/nova_vm/src/ecmascript/builtins/arguments.rs +++ b/nova_vm/src/ecmascript/builtins/arguments.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! ### [10.4.4 Arguments Exotic Objects](https://tc39.es/ecma262/#sec-arguments-exotic-objects) //! //! Most ECMAScript functions make an arguments object available to their code. Depending upon the characteristics of the function definition, its arguments object is either an ordinary object or an arguments exotic object. An arguments exotic object is an exotic object whose array index properties map to the formal parameters bindings of an invocation of its associated ECMAScript function. diff --git a/nova_vm/src/ecmascript/builtins/array.rs b/nova_vm/src/ecmascript/builtins/array.rs index 572f9c86d..59edc243d 100644 --- a/nova_vm/src/ecmascript/builtins/array.rs +++ b/nova_vm/src/ecmascript/builtins/array.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! ### 10.4.2 Array Exotic Objects //! //! https://tc39.es/ecma262/#sec-array-exotic-objects diff --git a/nova_vm/src/ecmascript/builtins/array/abstract_operations.rs b/nova_vm/src/ecmascript/builtins/array/abstract_operations.rs index 1efe8653d..9f56d955b 100644 --- a/nova_vm/src/ecmascript/builtins/array/abstract_operations.rs +++ b/nova_vm/src/ecmascript/builtins/array/abstract_operations.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ abstract_operations::{ diff --git a/nova_vm/src/ecmascript/builtins/array/data.rs b/nova_vm/src/ecmascript/builtins/array/data.rs index 97dd50ba7..1b19caf2a 100644 --- a/nova_vm/src/ecmascript/builtins/array/data.rs +++ b/nova_vm/src/ecmascript/builtins/array/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ execution::Agent, diff --git a/nova_vm/src/ecmascript/builtins/array_buffer.rs b/nova_vm/src/ecmascript/builtins/array_buffer.rs index 33a205a68..42efa8749 100644 --- a/nova_vm/src/ecmascript/builtins/array_buffer.rs +++ b/nova_vm/src/ecmascript/builtins/array_buffer.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! ## [25.1 ArrayBuffer Objects](https://tc39.es/ecma262/#sec-arraybuffer-objects) mod abstract_operations; diff --git a/nova_vm/src/ecmascript/builtins/array_buffer/abstract_operations.rs b/nova_vm/src/ecmascript/builtins/array_buffer/abstract_operations.rs index 91b273500..df30fd716 100644 --- a/nova_vm/src/ecmascript/builtins/array_buffer/abstract_operations.rs +++ b/nova_vm/src/ecmascript/builtins/array_buffer/abstract_operations.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::{ArrayBuffer, ArrayBufferHeapData}; use crate::{ ecmascript::{ diff --git a/nova_vm/src/ecmascript/builtins/array_buffer/data.rs b/nova_vm/src/ecmascript/builtins/array_buffer/data.rs index 8efceeca7..7e0524083 100644 --- a/nova_vm/src/ecmascript/builtins/array_buffer/data.rs +++ b/nova_vm/src/ecmascript/builtins/array_buffer/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::mem::ManuallyDrop; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/bound_function.rs b/nova_vm/src/ecmascript/builtins/bound_function.rs index d6be44f61..980b7c2db 100644 --- a/nova_vm/src/ecmascript/builtins/bound_function.rs +++ b/nova_vm/src/ecmascript/builtins/bound_function.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/builtin_function.rs b/nova_vm/src/ecmascript/builtins/builtin_function.rs index 26e52d4e8..d95373d7c 100644 --- a/nova_vm/src/ecmascript/builtins/builtin_function.rs +++ b/nova_vm/src/ecmascript/builtins/builtin_function.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Deref, Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects.rs index 390e9a74d..6308b216c 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod async_function_objects; pub(crate) mod async_generator_function_objects; pub(crate) mod async_generator_objects; diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_function_objects.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_function_objects.rs index 84bf4464b..d13e35116 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_function_objects.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_function_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod async_function_constructor; pub(crate) mod async_function_prototype; diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_function_objects/async_function_constructor.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_function_objects/async_function_constructor.rs index 1b8325cd3..dce952b9d 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_function_objects/async_function_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_function_objects/async_function_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_function_objects/async_function_prototype.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_function_objects/async_function_prototype.rs index 2573f5424..2a89a38a6 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_function_objects/async_function_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_function_objects/async_function_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_function_objects.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_function_objects.rs index 4cf986308..2ca101115 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_function_objects.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_function_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod async_generator_function_constructor; pub(crate) mod async_generator_function_prototype; diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_function_objects/async_generator_function_constructor.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_function_objects/async_generator_function_constructor.rs index abee2edc1..acbe0a7ff 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_function_objects/async_generator_function_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_function_objects/async_generator_function_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_function_objects/async_generator_function_prototype.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_function_objects/async_generator_function_prototype.rs index ecac829ea..4cd6fd1ae 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_function_objects/async_generator_function_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_function_objects/async_generator_function_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_objects.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_objects.rs index cfe5c0a66..dd5a9439a 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_objects.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_function_objects.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_function_objects.rs index faa76dcfa..60a98b268 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_function_objects.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_function_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod generator_function_constructor; pub(crate) mod generator_function_prototype; diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_function_objects/generator_function_constructor.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_function_objects/generator_function_constructor.rs index f2c9a2f21..fde7e7984 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_function_objects/generator_function_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_function_objects/generator_function_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_function_objects/generator_function_prototype.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_function_objects/generator_function_prototype.rs index 175c8fdde..063c14fa9 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_function_objects/generator_function_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_function_objects/generator_function_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_objects.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_objects.rs index bc5e19f02..c26515199 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_objects.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration.rs index 70b466326..6fbc3f0da 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod async_from_sync_iterator_prototype; pub(crate) mod async_iterator_prototype; pub(crate) mod iterator_prototype; diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration/async_from_sync_iterator_prototype.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration/async_from_sync_iterator_prototype.rs index 3c9008be0..73834828c 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration/async_from_sync_iterator_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration/async_from_sync_iterator_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, builtins::{ArgumentsList, Behaviour, Builtin}, diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration/async_iterator_prototype.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration/async_iterator_prototype.rs index c0d7de2c8..fd393bc0e 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration/async_iterator_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration/async_iterator_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration/iterator_prototype.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration/iterator_prototype.rs index efb6be99f..70fafcc26 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration/iterator_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/iteration/iterator_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects.rs index 37941bd5a..838f90253 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod promise_abstract_operations; pub(crate) mod promise_constructor; pub(crate) mod promise_prototype; diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations.rs index 4c802fdf0..27f110b80 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod promise_capability_records; pub(crate) mod promise_reaction_records; pub(crate) mod promise_reject_function; diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_capability_records.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_capability_records.rs index aa6d5d45a..ab76566d8 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_capability_records.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_capability_records.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! ## [27.2.1.1 PromiseCapability Records]() use std::ops::{Index, IndexMut}; diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_reaction_records.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_reaction_records.rs index 1e0c01662..3100acac8 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_reaction_records.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_reaction_records.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_reject_function.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_reject_function.rs index 341c606b2..dad78d4df 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_reject_function.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_reject_function.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_constructor.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_constructor.rs index 1b4d28d59..8afcb1ec8 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_prototype.rs b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_prototype.rs index 103afed19..c59066947 100644 --- a/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/data_view.rs b/nova_vm/src/ecmascript/builtins/data_view.rs index 58a2c3766..98cbacb23 100644 --- a/nova_vm/src/ecmascript/builtins/data_view.rs +++ b/nova_vm/src/ecmascript/builtins/data_view.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/data_view/data.rs b/nova_vm/src/ecmascript/builtins/data_view/data.rs index fccad10eb..becc10751 100644 --- a/nova_vm/src/ecmascript/builtins/data_view/data.rs +++ b/nova_vm/src/ecmascript/builtins/data_view/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::types::OrdinaryObject, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}, diff --git a/nova_vm/src/ecmascript/builtins/date.rs b/nova_vm/src/ecmascript/builtins/date.rs index ac0eb5696..90af6194f 100644 --- a/nova_vm/src/ecmascript/builtins/date.rs +++ b/nova_vm/src/ecmascript/builtins/date.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod data; use std::ops::{Index, IndexMut}; diff --git a/nova_vm/src/ecmascript/builtins/date/data.rs b/nova_vm/src/ecmascript/builtins/date/data.rs index 5e23c0ab5..96423802a 100644 --- a/nova_vm/src/ecmascript/builtins/date/data.rs +++ b/nova_vm/src/ecmascript/builtins/date/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::types::OrdinaryObject, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}, diff --git a/nova_vm/src/ecmascript/builtins/ecmascript_function.rs b/nova_vm/src/ecmascript/builtins/ecmascript_function.rs index c6e044405..f5da5bb6f 100644 --- a/nova_vm/src/ecmascript/builtins/ecmascript_function.rs +++ b/nova_vm/src/ecmascript/builtins/ecmascript_function.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use oxc_ast::{ diff --git a/nova_vm/src/ecmascript/builtins/embedder_object.rs b/nova_vm/src/ecmascript/builtins/embedder_object.rs index 30e57d72d..58f1aa29e 100644 --- a/nova_vm/src/ecmascript/builtins/embedder_object.rs +++ b/nova_vm/src/ecmascript/builtins/embedder_object.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/embedder_object/data.rs b/nova_vm/src/ecmascript/builtins/embedder_object/data.rs index fcbb0fa06..402e36959 100644 --- a/nova_vm/src/ecmascript/builtins/embedder_object/data.rs +++ b/nova_vm/src/ecmascript/builtins/embedder_object/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}; #[derive(Debug, Clone)] diff --git a/nova_vm/src/ecmascript/builtins/error.rs b/nova_vm/src/ecmascript/builtins/error.rs index c12679969..1d4a80e20 100644 --- a/nova_vm/src/ecmascript/builtins/error.rs +++ b/nova_vm/src/ecmascript/builtins/error.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + mod data; use std::ops::{Index, IndexMut}; diff --git a/nova_vm/src/ecmascript/builtins/error/data.rs b/nova_vm/src/ecmascript/builtins/error/data.rs index 7aee9076a..5498e1014 100644 --- a/nova_vm/src/ecmascript/builtins/error/data.rs +++ b/nova_vm/src/ecmascript/builtins/error/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ execution::agent::ExceptionType, diff --git a/nova_vm/src/ecmascript/builtins/finalization_registry.rs b/nova_vm/src/ecmascript/builtins/finalization_registry.rs index a01272bda..4f96c71a8 100644 --- a/nova_vm/src/ecmascript/builtins/finalization_registry.rs +++ b/nova_vm/src/ecmascript/builtins/finalization_registry.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/finalization_registry/data.rs b/nova_vm/src/ecmascript/builtins/finalization_registry/data.rs index b0f0198f0..c60b28747 100644 --- a/nova_vm/src/ecmascript/builtins/finalization_registry/data.rs +++ b/nova_vm/src/ecmascript/builtins/finalization_registry/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::types::OrdinaryObject, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}, diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects.rs index 6513fc1c5..75a18fbe8 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod boolean_objects; pub(crate) mod error_objects; pub(crate) mod function_objects; diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/boolean_objects.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/boolean_objects.rs index 0a397d544..68afaa23b 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/boolean_objects.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/boolean_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod boolean_constructor; pub(crate) mod boolean_prototype; diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/boolean_objects/boolean_constructor.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/boolean_objects/boolean_constructor.rs index de24ac273..a1dfdd3db 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/boolean_objects/boolean_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/boolean_objects/boolean_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::abstract_operations::type_conversion::to_boolean; use crate::ecmascript::builders::builtin_function_builder::BuiltinFunctionBuilder; use crate::ecmascript::builtins::ordinary::ordinary_create_from_constructor; diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/boolean_objects/boolean_prototype.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/boolean_objects/boolean_prototype.rs index 8f2a3fc39..d5ed9b822 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/boolean_objects/boolean_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/boolean_objects/boolean_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, builtins::{ diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects.rs index c21161ce5..30dd82cf5 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod aggregate_error_constructors; pub(crate) mod aggregate_error_prototypes; pub(crate) mod error_constructor; diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/aggregate_error_constructors.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/aggregate_error_constructors.rs index 61647e4fb..8857c8e1e 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/aggregate_error_constructors.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/aggregate_error_constructors.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/aggregate_error_prototypes.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/aggregate_error_prototypes.rs index 418a962c6..3ed01307a 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/aggregate_error_prototypes.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/aggregate_error_prototypes.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, execution::{Agent, RealmIdentifier}, diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/error_constructor.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/error_constructor.rs index 5cd78e9a4..5e816391d 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/error_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/error_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::abstract_operations::operations_on_objects::get; use crate::ecmascript::abstract_operations::operations_on_objects::has_property; use crate::ecmascript::abstract_operations::type_conversion::to_string; diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/error_prototype.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/error_prototype.rs index b3ce84947..52225051c 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/error_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/error_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::{ abstract_operations::{operations_on_objects::get, type_conversion::to_string}, builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/native_error_constructors.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/native_error_constructors.rs index e6f3492a9..bec9ee11e 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/native_error_constructors.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/native_error_constructors.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ abstract_operations::type_conversion::to_string, diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/native_error_prototypes.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/native_error_prototypes.rs index 14613339d..00b1be9a8 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/native_error_prototypes.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/error_objects/native_error_prototypes.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, execution::{Agent, RealmIdentifier}, diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/function_objects.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/function_objects.rs index ba874707f..2c273f0ce 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/function_objects.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/function_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod function_constructor; pub(crate) mod function_prototype; diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/function_objects/function_constructor.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/function_objects/function_constructor.rs index 490fa70e1..f6be6424c 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/function_objects/function_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/function_objects/function_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::builders::builtin_function_builder::BuiltinFunctionBuilder; use crate::ecmascript::builtins::ArgumentsList; use crate::ecmascript::builtins::Behaviour; diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/function_objects/function_prototype.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/function_objects/function_prototype.rs index 3e47c0182..66717f549 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/function_objects/function_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/function_objects/function_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ abstract_operations::{ diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/object_objects.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/object_objects.rs index 442db92ac..b513c5d02 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/object_objects.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/object_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod object_constructor; pub(crate) mod object_prototype; diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/object_objects/object_constructor.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/object_objects/object_constructor.rs index d09c4c1fd..2af634b4f 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/object_objects/object_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/object_objects/object_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ abstract_operations::{ diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/object_objects/object_prototype.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/object_objects/object_prototype.rs index 0de6f5204..fee427517 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/object_objects/object_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/object_objects/object_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ abstract_operations::{ diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/symbol_objects.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/symbol_objects.rs index ec1d5eb34..4e5f072cd 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/symbol_objects.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/symbol_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod symbol_constructor; pub(crate) mod symbol_prototype; diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/symbol_objects/symbol_constructor.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/symbol_objects/symbol_constructor.rs index 20b7abf9e..b5668e4c7 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/symbol_objects/symbol_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/symbol_objects/symbol_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::abstract_operations::type_conversion::to_string; use crate::ecmascript::builders::builtin_function_builder::BuiltinFunctionBuilder; use crate::ecmascript::builtins::ArgumentsList; diff --git a/nova_vm/src/ecmascript/builtins/fundamental_objects/symbol_objects/symbol_prototype.rs b/nova_vm/src/ecmascript/builtins/fundamental_objects/symbol_objects/symbol_prototype.rs index ce64013d6..ef33fec6d 100644 --- a/nova_vm/src/ecmascript/builtins/fundamental_objects/symbol_objects/symbol_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/fundamental_objects/symbol_objects/symbol_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::{ diff --git a/nova_vm/src/ecmascript/builtins/global_object.rs b/nova_vm/src/ecmascript/builtins/global_object.rs index 299e47db5..ab3173c37 100644 --- a/nova_vm/src/ecmascript/builtins/global_object.rs +++ b/nova_vm/src/ecmascript/builtins/global_object.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::collections::HashSet; use oxc_ast::{ diff --git a/nova_vm/src/ecmascript/builtins/indexed_collections.rs b/nova_vm/src/ecmascript/builtins/indexed_collections.rs index 6b72c3e25..b1bfb63f0 100644 --- a/nova_vm/src/ecmascript/builtins/indexed_collections.rs +++ b/nova_vm/src/ecmascript/builtins/indexed_collections.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod array_objects; pub(crate) mod typed_array_objects; diff --git a/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects.rs b/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects.rs index 9cd759d63..3862adee9 100644 --- a/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects.rs +++ b/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod array_constructor; pub(crate) mod array_iterator_objects; pub(crate) mod array_prototype; diff --git a/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects/array_constructor.rs b/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects/array_constructor.rs index fdaf32da6..c495f8287 100644 --- a/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects/array_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects/array_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::abstract_operations::operations_on_iterator_objects::get_iterator_from_method; use crate::ecmascript::abstract_operations::operations_on_iterator_objects::if_abrupt_close_iterator; use crate::ecmascript::abstract_operations::operations_on_iterator_objects::iterator_close; diff --git a/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects/array_iterator_objects.rs b/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects/array_iterator_objects.rs index a457c42d8..31500eaa3 100644 --- a/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects/array_iterator_objects.rs +++ b/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects/array_iterator_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects/array_prototype.rs b/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects/array_prototype.rs index 204cc46ad..b21e88953 100644 --- a/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects/array_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/indexed_collections/array_objects/array_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use num_traits::Zero; use small_string::SmallString; diff --git a/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects.rs b/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects.rs index ec9fccdb5..de9ce7a66 100644 --- a/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects.rs +++ b/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod typed_array_constructors; pub(crate) mod typed_array_intrinsic_object; diff --git a/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects/typed_array_constructors.rs b/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects/typed_array_constructors.rs index 5fbf368b7..b647134d5 100644 --- a/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects/typed_array_constructors.rs +++ b/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects/typed_array_constructors.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::{ diff --git a/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects/typed_array_intrinsic_object.rs b/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects/typed_array_intrinsic_object.rs index 3d8ed5310..dc9d377b3 100644 --- a/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects/typed_array_intrinsic_object.rs +++ b/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects/typed_array_intrinsic_object.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::abstract_operations::testing_and_comparison::is_array; use crate::ecmascript::builders::builtin_function_builder::BuiltinFunctionBuilder; use crate::ecmascript::builders::ordinary_object_builder::OrdinaryObjectBuilder; diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections.rs b/nova_vm/src/ecmascript/builtins/keyed_collections.rs index 76fc49edc..c1c82987a 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod map_objects; pub(crate) mod set_objects; pub(crate) mod weak_map_objects; diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects.rs index c11559e71..85875f8b0 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod map_constructor; pub(crate) mod map_iterator_objects; pub(crate) mod map_prototype; diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects/map_constructor.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects/map_constructor.rs index 5686c5772..dcc594d09 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects/map_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects/map_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ abstract_operations::{operations_on_objects::get, testing_and_comparison::is_callable}, diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects/map_iterator_objects.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects/map_iterator_objects.rs index 94e69716b..4366ff46d 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects/map_iterator_objects.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects/map_iterator_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects/map_prototype.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects/map_prototype.rs index 48e6985e9..9c47703f6 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects/map_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/map_objects/map_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::{ diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects.rs index 809e69c1f..321600e6a 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod set_constructor; pub(crate) mod set_iterator_objects; pub(crate) mod set_prototype; diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects/set_constructor.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects/set_constructor.rs index ce1ce203f..f4583f504 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects/set_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects/set_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects/set_iterator_objects.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects/set_iterator_objects.rs index 5fc931e64..bec788571 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects/set_iterator_objects.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects/set_iterator_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects/set_prototype.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects/set_prototype.rs index cb93352f0..d71047329 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects/set_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/set_objects/set_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/weak_map_objects.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/weak_map_objects.rs index dc4f408a6..cebc9868f 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/weak_map_objects.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/weak_map_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod weak_map_constructor; pub(crate) mod weak_map_prototype; diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/weak_map_objects/weak_map_constructor.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/weak_map_objects/weak_map_constructor.rs index 393aa6a90..1dbfc8ebf 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/weak_map_objects/weak_map_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/weak_map_objects/weak_map_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/weak_map_objects/weak_map_prototype.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/weak_map_objects/weak_map_prototype.rs index 6aa84fc34..44955efe7 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/weak_map_objects/weak_map_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/weak_map_objects/weak_map_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/weak_set_objects.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/weak_set_objects.rs index 64ec5f299..c39eed548 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/weak_set_objects.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/weak_set_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod weak_set_constructor; pub(crate) mod weak_set_prototype; diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/weak_set_objects/weak_set_constructor.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/weak_set_objects/weak_set_constructor.rs index 6ef653d63..2e8ad53ca 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/weak_set_objects/weak_set_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/weak_set_objects/weak_set_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/keyed_collections/weak_set_objects/weak_set_prototype.rs b/nova_vm/src/ecmascript/builtins/keyed_collections/weak_set_objects/weak_set_prototype.rs index 5dd199fc1..85ea177a3 100644 --- a/nova_vm/src/ecmascript/builtins/keyed_collections/weak_set_objects/weak_set_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/keyed_collections/weak_set_objects/weak_set_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/managing_memory.rs b/nova_vm/src/ecmascript/builtins/managing_memory.rs index 9227dd1f0..46f1a06b0 100644 --- a/nova_vm/src/ecmascript/builtins/managing_memory.rs +++ b/nova_vm/src/ecmascript/builtins/managing_memory.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod finalization_registry_objects; pub(crate) mod weak_ref_objects; diff --git a/nova_vm/src/ecmascript/builtins/managing_memory/finalization_registry_objects.rs b/nova_vm/src/ecmascript/builtins/managing_memory/finalization_registry_objects.rs index 19038913c..3437e695b 100644 --- a/nova_vm/src/ecmascript/builtins/managing_memory/finalization_registry_objects.rs +++ b/nova_vm/src/ecmascript/builtins/managing_memory/finalization_registry_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod finalization_registry_constructor; pub(crate) mod finalization_registry_prototype; diff --git a/nova_vm/src/ecmascript/builtins/managing_memory/finalization_registry_objects/finalization_registry_constructor.rs b/nova_vm/src/ecmascript/builtins/managing_memory/finalization_registry_objects/finalization_registry_constructor.rs index 294fb3f3c..00aa07933 100644 --- a/nova_vm/src/ecmascript/builtins/managing_memory/finalization_registry_objects/finalization_registry_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/managing_memory/finalization_registry_objects/finalization_registry_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/managing_memory/finalization_registry_objects/finalization_registry_prototype.rs b/nova_vm/src/ecmascript/builtins/managing_memory/finalization_registry_objects/finalization_registry_prototype.rs index db59b16a4..2d076ae9e 100644 --- a/nova_vm/src/ecmascript/builtins/managing_memory/finalization_registry_objects/finalization_registry_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/managing_memory/finalization_registry_objects/finalization_registry_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/managing_memory/weak_ref_objects.rs b/nova_vm/src/ecmascript/builtins/managing_memory/weak_ref_objects.rs index b14de7e79..b956bddd5 100644 --- a/nova_vm/src/ecmascript/builtins/managing_memory/weak_ref_objects.rs +++ b/nova_vm/src/ecmascript/builtins/managing_memory/weak_ref_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod weak_ref_constructor; pub(crate) mod weak_ref_prototype; diff --git a/nova_vm/src/ecmascript/builtins/managing_memory/weak_ref_objects/weak_ref_constructor.rs b/nova_vm/src/ecmascript/builtins/managing_memory/weak_ref_objects/weak_ref_constructor.rs index da46dcaeb..db683d679 100644 --- a/nova_vm/src/ecmascript/builtins/managing_memory/weak_ref_objects/weak_ref_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/managing_memory/weak_ref_objects/weak_ref_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/managing_memory/weak_ref_objects/weak_ref_prototype.rs b/nova_vm/src/ecmascript/builtins/managing_memory/weak_ref_objects/weak_ref_prototype.rs index 430c05090..efbeb8d18 100644 --- a/nova_vm/src/ecmascript/builtins/managing_memory/weak_ref_objects/weak_ref_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/managing_memory/weak_ref_objects/weak_ref_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/map.rs b/nova_vm/src/ecmascript/builtins/map.rs index c4a67b38a..d27887ef5 100644 --- a/nova_vm/src/ecmascript/builtins/map.rs +++ b/nova_vm/src/ecmascript/builtins/map.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/map/data.rs b/nova_vm/src/ecmascript/builtins/map/data.rs index 88d49e86e..dc2150146 100644 --- a/nova_vm/src/ecmascript/builtins/map/data.rs +++ b/nova_vm/src/ecmascript/builtins/map/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::types::{OrdinaryObject, Value}, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}, diff --git a/nova_vm/src/ecmascript/builtins/module.rs b/nova_vm/src/ecmascript/builtins/module.rs index 9fc4c80be..b1fee4ebc 100644 --- a/nova_vm/src/ecmascript/builtins/module.rs +++ b/nova_vm/src/ecmascript/builtins/module.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/module/data.rs b/nova_vm/src/ecmascript/builtins/module/data.rs index c9321d9d8..6e04f3143 100644 --- a/nova_vm/src/ecmascript/builtins/module/data.rs +++ b/nova_vm/src/ecmascript/builtins/module/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use small_string::SmallString; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/numbers_and_dates.rs b/nova_vm/src/ecmascript/builtins/numbers_and_dates.rs index ba8ea4781..20c6cf1c2 100644 --- a/nova_vm/src/ecmascript/builtins/numbers_and_dates.rs +++ b/nova_vm/src/ecmascript/builtins/numbers_and_dates.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub mod bigint_objects; pub mod date_objects; pub mod math_object; diff --git a/nova_vm/src/ecmascript/builtins/numbers_and_dates/bigint_objects.rs b/nova_vm/src/ecmascript/builtins/numbers_and_dates/bigint_objects.rs index f105b8eb3..9700f790d 100644 --- a/nova_vm/src/ecmascript/builtins/numbers_and_dates/bigint_objects.rs +++ b/nova_vm/src/ecmascript/builtins/numbers_and_dates/bigint_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod bigint_constructor; pub(crate) mod bigint_prototype; diff --git a/nova_vm/src/ecmascript/builtins/numbers_and_dates/bigint_objects/bigint_constructor.rs b/nova_vm/src/ecmascript/builtins/numbers_and_dates/bigint_objects/bigint_constructor.rs index 20d6eaec1..ed9528d27 100644 --- a/nova_vm/src/ecmascript/builtins/numbers_and_dates/bigint_objects/bigint_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/numbers_and_dates/bigint_objects/bigint_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use num_bigint::ToBigInt; use crate::ecmascript::abstract_operations::testing_and_comparison::is_integral_number; diff --git a/nova_vm/src/ecmascript/builtins/numbers_and_dates/bigint_objects/bigint_prototype.rs b/nova_vm/src/ecmascript/builtins/numbers_and_dates/bigint_objects/bigint_prototype.rs index 37cefb5a0..dd26d054c 100644 --- a/nova_vm/src/ecmascript/builtins/numbers_and_dates/bigint_objects/bigint_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/numbers_and_dates/bigint_objects/bigint_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/numbers_and_dates/date_objects.rs b/nova_vm/src/ecmascript/builtins/numbers_and_dates/date_objects.rs index 2dbc99ddc..6bbaac672 100644 --- a/nova_vm/src/ecmascript/builtins/numbers_and_dates/date_objects.rs +++ b/nova_vm/src/ecmascript/builtins/numbers_and_dates/date_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub mod date_constructor; pub mod date_prototype; diff --git a/nova_vm/src/ecmascript/builtins/numbers_and_dates/date_objects/date_constructor.rs b/nova_vm/src/ecmascript/builtins/numbers_and_dates/date_objects/date_constructor.rs index 99e19b0d6..821ab3e92 100644 --- a/nova_vm/src/ecmascript/builtins/numbers_and_dates/date_objects/date_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/numbers_and_dates/date_objects/date_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::time::SystemTime; use crate::ecmascript::abstract_operations::type_conversion::to_number; diff --git a/nova_vm/src/ecmascript/builtins/numbers_and_dates/date_objects/date_prototype.rs b/nova_vm/src/ecmascript/builtins/numbers_and_dates/date_objects/date_prototype.rs index 804566d26..0b6d2a2e7 100644 --- a/nova_vm/src/ecmascript/builtins/numbers_and_dates/date_objects/date_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/numbers_and_dates/date_objects/date_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::time::SystemTime; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/numbers_and_dates/math_object.rs b/nova_vm/src/ecmascript/builtins/numbers_and_dates/math_object.rs index 336f3580a..9fc6f168b 100644 --- a/nova_vm/src/ecmascript/builtins/numbers_and_dates/math_object.rs +++ b/nova_vm/src/ecmascript/builtins/numbers_and_dates/math_object.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::f64::consts; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/numbers_and_dates/number_objects.rs b/nova_vm/src/ecmascript/builtins/numbers_and_dates/number_objects.rs index abc2c61d8..e8da26341 100644 --- a/nova_vm/src/ecmascript/builtins/numbers_and_dates/number_objects.rs +++ b/nova_vm/src/ecmascript/builtins/numbers_and_dates/number_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub mod number_constructor; pub mod number_prototype; diff --git a/nova_vm/src/ecmascript/builtins/numbers_and_dates/number_objects/number_constructor.rs b/nova_vm/src/ecmascript/builtins/numbers_and_dates/number_objects/number_constructor.rs index f7aec4781..2b7ab8401 100644 --- a/nova_vm/src/ecmascript/builtins/numbers_and_dates/number_objects/number_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/numbers_and_dates/number_objects/number_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::abstract_operations::testing_and_comparison::is_integral_number; use crate::ecmascript::builders::builtin_function_builder::BuiltinFunctionBuilder; use crate::ecmascript::builtins::ordinary::ordinary_create_from_constructor; diff --git a/nova_vm/src/ecmascript/builtins/numbers_and_dates/number_objects/number_prototype.rs b/nova_vm/src/ecmascript/builtins/numbers_and_dates/number_objects/number_prototype.rs index e60052ce6..3fae68e1f 100644 --- a/nova_vm/src/ecmascript/builtins/numbers_and_dates/number_objects/number_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/numbers_and_dates/number_objects/number_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ abstract_operations::type_conversion::to_integer_or_infinity, diff --git a/nova_vm/src/ecmascript/builtins/ordinary.rs b/nova_vm/src/ecmascript/builtins/ordinary.rs index f6e87a358..641ea71f8 100644 --- a/nova_vm/src/ecmascript/builtins/ordinary.rs +++ b/nova_vm/src/ecmascript/builtins/ordinary.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::{ ops::{Index, IndexMut}, vec, diff --git a/nova_vm/src/ecmascript/builtins/primitive_objects.rs b/nova_vm/src/ecmascript/builtins/primitive_objects.rs index 548e34591..48f649ce8 100644 --- a/nova_vm/src/ecmascript/builtins/primitive_objects.rs +++ b/nova_vm/src/ecmascript/builtins/primitive_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/promise.rs b/nova_vm/src/ecmascript/builtins/promise.rs index 60e52e640..a727f86d5 100644 --- a/nova_vm/src/ecmascript/builtins/promise.rs +++ b/nova_vm/src/ecmascript/builtins/promise.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/promise/data.rs b/nova_vm/src/ecmascript/builtins/promise/data.rs index 8717318c7..ea510c367 100644 --- a/nova_vm/src/ecmascript/builtins/promise/data.rs +++ b/nova_vm/src/ecmascript/builtins/promise/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ecmascript::{builtins::control_abstraction_objects::promise_objects::promise_abstract_operations::promise_reaction_records::PromiseReaction, types::{OrdinaryObject, Value}}, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}}; #[derive(Debug, Clone, Default)] diff --git a/nova_vm/src/ecmascript/builtins/proxy.rs b/nova_vm/src/ecmascript/builtins/proxy.rs index 3fa2193d3..688663a94 100644 --- a/nova_vm/src/ecmascript/builtins/proxy.rs +++ b/nova_vm/src/ecmascript/builtins/proxy.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/proxy/data.rs b/nova_vm/src/ecmascript/builtins/proxy/data.rs index 9a40c61ad..98978140f 100644 --- a/nova_vm/src/ecmascript/builtins/proxy/data.rs +++ b/nova_vm/src/ecmascript/builtins/proxy/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::types::OrdinaryObject, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}, diff --git a/nova_vm/src/ecmascript/builtins/reflection.rs b/nova_vm/src/ecmascript/builtins/reflection.rs index bc459f4cc..aef3f0d62 100644 --- a/nova_vm/src/ecmascript/builtins/reflection.rs +++ b/nova_vm/src/ecmascript/builtins/reflection.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod proxy_constructor; pub(crate) mod reflect_object; diff --git a/nova_vm/src/ecmascript/builtins/reflection/proxy_constructor.rs b/nova_vm/src/ecmascript/builtins/reflection/proxy_constructor.rs index 32782794f..ec04fdee3 100644 --- a/nova_vm/src/ecmascript/builtins/reflection/proxy_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/reflection/proxy_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/reflection/reflect_object.rs b/nova_vm/src/ecmascript/builtins/reflection/reflect_object.rs index a37a8ca28..6199c6c56 100644 --- a/nova_vm/src/ecmascript/builtins/reflection/reflect_object.rs +++ b/nova_vm/src/ecmascript/builtins/reflection/reflect_object.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ abstract_operations::{ diff --git a/nova_vm/src/ecmascript/builtins/regexp.rs b/nova_vm/src/ecmascript/builtins/regexp.rs index c0e77fcdf..adc065447 100644 --- a/nova_vm/src/ecmascript/builtins/regexp.rs +++ b/nova_vm/src/ecmascript/builtins/regexp.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod abstract_operations; pub(crate) mod data; diff --git a/nova_vm/src/ecmascript/builtins/regexp/abstract_operations.rs b/nova_vm/src/ecmascript/builtins/regexp/abstract_operations.rs index 35b3dcc65..62533097e 100644 --- a/nova_vm/src/ecmascript/builtins/regexp/abstract_operations.rs +++ b/nova_vm/src/ecmascript/builtins/regexp/abstract_operations.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use oxc_ast::ast::RegExpFlags; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/regexp/data.rs b/nova_vm/src/ecmascript/builtins/regexp/data.rs index 2f359d287..b5a4e7ade 100644 --- a/nova_vm/src/ecmascript/builtins/regexp/data.rs +++ b/nova_vm/src/ecmascript/builtins/regexp/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use oxc_ast::ast::RegExpFlags; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/set.rs b/nova_vm/src/ecmascript/builtins/set.rs index b9cf26ea4..7c5fa71a5 100644 --- a/nova_vm/src/ecmascript/builtins/set.rs +++ b/nova_vm/src/ecmascript/builtins/set.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/set/data.rs b/nova_vm/src/ecmascript/builtins/set/data.rs index 3c0c63be8..a138dc62b 100644 --- a/nova_vm/src/ecmascript/builtins/set/data.rs +++ b/nova_vm/src/ecmascript/builtins/set/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::types::{OrdinaryObject, Value}, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}, diff --git a/nova_vm/src/ecmascript/builtins/shared_array_buffer.rs b/nova_vm/src/ecmascript/builtins/shared_array_buffer.rs index 27394d324..37c01c3cc 100644 --- a/nova_vm/src/ecmascript/builtins/shared_array_buffer.rs +++ b/nova_vm/src/ecmascript/builtins/shared_array_buffer.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/shared_array_buffer/data.rs b/nova_vm/src/ecmascript/builtins/shared_array_buffer/data.rs index 5ba166bef..77f3d0347 100644 --- a/nova_vm/src/ecmascript/builtins/shared_array_buffer/data.rs +++ b/nova_vm/src/ecmascript/builtins/shared_array_buffer/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::types::OrdinaryObject, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}, diff --git a/nova_vm/src/ecmascript/builtins/structured_data.rs b/nova_vm/src/ecmascript/builtins/structured_data.rs index 5d073f592..6c50aee60 100644 --- a/nova_vm/src/ecmascript/builtins/structured_data.rs +++ b/nova_vm/src/ecmascript/builtins/structured_data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod array_buffer_objects; pub(crate) mod atomics_object; pub(crate) mod data_view_objects; diff --git a/nova_vm/src/ecmascript/builtins/structured_data/array_buffer_objects.rs b/nova_vm/src/ecmascript/builtins/structured_data/array_buffer_objects.rs index d4d98a9fd..fbd8e4b32 100644 --- a/nova_vm/src/ecmascript/builtins/structured_data/array_buffer_objects.rs +++ b/nova_vm/src/ecmascript/builtins/structured_data/array_buffer_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod array_buffer_constructor; pub(crate) mod array_buffer_prototype; diff --git a/nova_vm/src/ecmascript/builtins/structured_data/array_buffer_objects/array_buffer_constructor.rs b/nova_vm/src/ecmascript/builtins/structured_data/array_buffer_objects/array_buffer_constructor.rs index 56c1b4fc8..81713d141 100644 --- a/nova_vm/src/ecmascript/builtins/structured_data/array_buffer_objects/array_buffer_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/structured_data/array_buffer_objects/array_buffer_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/structured_data/array_buffer_objects/array_buffer_prototype.rs b/nova_vm/src/ecmascript/builtins/structured_data/array_buffer_objects/array_buffer_prototype.rs index a20dab4b1..83d3ec97e 100644 --- a/nova_vm/src/ecmascript/builtins/structured_data/array_buffer_objects/array_buffer_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/structured_data/array_buffer_objects/array_buffer_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/structured_data/atomics_object.rs b/nova_vm/src/ecmascript/builtins/structured_data/atomics_object.rs index 05bd36f16..116ce4f75 100644 --- a/nova_vm/src/ecmascript/builtins/structured_data/atomics_object.rs +++ b/nova_vm/src/ecmascript/builtins/structured_data/atomics_object.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/structured_data/data_view_objects.rs b/nova_vm/src/ecmascript/builtins/structured_data/data_view_objects.rs index f99b07544..1e5e273c1 100644 --- a/nova_vm/src/ecmascript/builtins/structured_data/data_view_objects.rs +++ b/nova_vm/src/ecmascript/builtins/structured_data/data_view_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod data_view_constructor; pub(crate) mod data_view_prototype; diff --git a/nova_vm/src/ecmascript/builtins/structured_data/data_view_objects/data_view_constructor.rs b/nova_vm/src/ecmascript/builtins/structured_data/data_view_objects/data_view_constructor.rs index bad28b3cf..97a556326 100644 --- a/nova_vm/src/ecmascript/builtins/structured_data/data_view_objects/data_view_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/structured_data/data_view_objects/data_view_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/structured_data/data_view_objects/data_view_prototype.rs b/nova_vm/src/ecmascript/builtins/structured_data/data_view_objects/data_view_prototype.rs index fadd74779..d2e55da50 100644 --- a/nova_vm/src/ecmascript/builtins/structured_data/data_view_objects/data_view_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/structured_data/data_view_objects/data_view_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/structured_data/json_object.rs b/nova_vm/src/ecmascript/builtins/structured_data/json_object.rs index 7b8a6143e..0cdf08955 100644 --- a/nova_vm/src/ecmascript/builtins/structured_data/json_object.rs +++ b/nova_vm/src/ecmascript/builtins/structured_data/json_object.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/structured_data/shared_array_buffer_objects.rs b/nova_vm/src/ecmascript/builtins/structured_data/shared_array_buffer_objects.rs index 61f8f3884..5053b40dc 100644 --- a/nova_vm/src/ecmascript/builtins/structured_data/shared_array_buffer_objects.rs +++ b/nova_vm/src/ecmascript/builtins/structured_data/shared_array_buffer_objects.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod shared_array_buffer_constructor; pub(crate) mod shared_array_buffer_prototype; diff --git a/nova_vm/src/ecmascript/builtins/structured_data/shared_array_buffer_objects/shared_array_buffer_constructor.rs b/nova_vm/src/ecmascript/builtins/structured_data/shared_array_buffer_objects/shared_array_buffer_constructor.rs index 8622986dd..80712e44d 100644 --- a/nova_vm/src/ecmascript/builtins/structured_data/shared_array_buffer_objects/shared_array_buffer_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/structured_data/shared_array_buffer_objects/shared_array_buffer_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::builtin_function_builder::BuiltinFunctionBuilder, diff --git a/nova_vm/src/ecmascript/builtins/structured_data/shared_array_buffer_objects/shared_array_buffer_prototype.rs b/nova_vm/src/ecmascript/builtins/structured_data/shared_array_buffer_objects/shared_array_buffer_prototype.rs index edc3927d3..ecb17a8bd 100644 --- a/nova_vm/src/ecmascript/builtins/structured_data/shared_array_buffer_objects/shared_array_buffer_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/structured_data/shared_array_buffer_objects/shared_array_buffer_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/text_processing.rs b/nova_vm/src/ecmascript/builtins/text_processing.rs index e7d038b15..5a9286659 100644 --- a/nova_vm/src/ecmascript/builtins/text_processing.rs +++ b/nova_vm/src/ecmascript/builtins/text_processing.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod regexp_objects; pub(crate) mod string_objects; diff --git a/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects.rs b/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects.rs index 8cf0a0c16..db1d8ecde 100644 --- a/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects.rs +++ b/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod regexp_constructor; pub(crate) mod regexp_prototype; pub(crate) mod regexp_string_iterator_prototype; diff --git a/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects/regexp_constructor.rs b/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects/regexp_constructor.rs index 259e59590..9f3663d98 100644 --- a/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects/regexp_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects/regexp_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::builders::builtin_function_builder::BuiltinFunctionBuilder; use crate::ecmascript::builtins::ArgumentsList; use crate::ecmascript::builtins::Behaviour; diff --git a/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects/regexp_prototype.rs b/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects/regexp_prototype.rs index ee4b099d9..789906d73 100644 --- a/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects/regexp_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects/regexp_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::{ diff --git a/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects/regexp_string_iterator_prototype.rs b/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects/regexp_string_iterator_prototype.rs index 81deb6d93..62607bb7f 100644 --- a/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects/regexp_string_iterator_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/text_processing/regexp_objects/regexp_string_iterator_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/text_processing/string_objects.rs b/nova_vm/src/ecmascript/builtins/text_processing/string_objects.rs index c0f680ce3..939c69ac3 100644 --- a/nova_vm/src/ecmascript/builtins/text_processing/string_objects.rs +++ b/nova_vm/src/ecmascript/builtins/text_processing/string_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod string_constructor; pub(crate) mod string_iterator_objects; pub(crate) mod string_prototype; diff --git a/nova_vm/src/ecmascript/builtins/text_processing/string_objects/string_constructor.rs b/nova_vm/src/ecmascript/builtins/text_processing/string_objects/string_constructor.rs index b2ab70351..e4d26e05a 100644 --- a/nova_vm/src/ecmascript/builtins/text_processing/string_objects/string_constructor.rs +++ b/nova_vm/src/ecmascript/builtins/text_processing/string_objects/string_constructor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::abstract_operations::type_conversion::to_string; use crate::ecmascript::builders::builtin_function_builder::BuiltinFunctionBuilder; use crate::ecmascript::builtins::ordinary::get_prototype_from_constructor; diff --git a/nova_vm/src/ecmascript/builtins/text_processing/string_objects/string_iterator_objects.rs b/nova_vm/src/ecmascript/builtins/text_processing/string_objects/string_iterator_objects.rs index 2a8573fc9..7d35fd0f8 100644 --- a/nova_vm/src/ecmascript/builtins/text_processing/string_objects/string_iterator_objects.rs +++ b/nova_vm/src/ecmascript/builtins/text_processing/string_objects/string_iterator_objects.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builders::ordinary_object_builder::OrdinaryObjectBuilder, diff --git a/nova_vm/src/ecmascript/builtins/text_processing/string_objects/string_prototype.rs b/nova_vm/src/ecmascript/builtins/text_processing/string_objects/string_prototype.rs index c048edfb7..a8acfaace 100644 --- a/nova_vm/src/ecmascript/builtins/text_processing/string_objects/string_prototype.rs +++ b/nova_vm/src/ecmascript/builtins/text_processing/string_objects/string_prototype.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use small_string::SmallString; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/typed_array.rs b/nova_vm/src/ecmascript/builtins/typed_array.rs index e57c937c8..b76a3fe8e 100644 --- a/nova_vm/src/ecmascript/builtins/typed_array.rs +++ b/nova_vm/src/ecmascript/builtins/typed_array.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/typed_array/data.rs b/nova_vm/src/ecmascript/builtins/typed_array/data.rs index dd0c40662..4104e1bab 100644 --- a/nova_vm/src/ecmascript/builtins/typed_array/data.rs +++ b/nova_vm/src/ecmascript/builtins/typed_array/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::types::OrdinaryObject, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}, diff --git a/nova_vm/src/ecmascript/builtins/weak_map.rs b/nova_vm/src/ecmascript/builtins/weak_map.rs index d6aeee2c1..b9fccdb71 100644 --- a/nova_vm/src/ecmascript/builtins/weak_map.rs +++ b/nova_vm/src/ecmascript/builtins/weak_map.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/weak_map/data.rs b/nova_vm/src/ecmascript/builtins/weak_map/data.rs index 307b230aa..9e2ff540b 100644 --- a/nova_vm/src/ecmascript/builtins/weak_map/data.rs +++ b/nova_vm/src/ecmascript/builtins/weak_map/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::types::{OrdinaryObject, Value}, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}, diff --git a/nova_vm/src/ecmascript/builtins/weak_ref.rs b/nova_vm/src/ecmascript/builtins/weak_ref.rs index 10c567519..97fc94f02 100644 --- a/nova_vm/src/ecmascript/builtins/weak_ref.rs +++ b/nova_vm/src/ecmascript/builtins/weak_ref.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/weak_ref/data.rs b/nova_vm/src/ecmascript/builtins/weak_ref/data.rs index 5ea4a6871..c1fb0bf2d 100644 --- a/nova_vm/src/ecmascript/builtins/weak_ref/data.rs +++ b/nova_vm/src/ecmascript/builtins/weak_ref/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::types::{OrdinaryObject, Value}, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}, diff --git a/nova_vm/src/ecmascript/builtins/weak_set.rs b/nova_vm/src/ecmascript/builtins/weak_set.rs index bc7018b0f..8234c53ba 100644 --- a/nova_vm/src/ecmascript/builtins/weak_set.rs +++ b/nova_vm/src/ecmascript/builtins/weak_set.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::{Index, IndexMut}; use crate::{ diff --git a/nova_vm/src/ecmascript/builtins/weak_set/data.rs b/nova_vm/src/ecmascript/builtins/weak_set/data.rs index 54bcaef81..d25129446 100644 --- a/nova_vm/src/ecmascript/builtins/weak_set/data.rs +++ b/nova_vm/src/ecmascript/builtins/weak_set/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::types::OrdinaryObject; #[derive(Debug, Clone, Default)] diff --git a/nova_vm/src/ecmascript/execution.rs b/nova_vm/src/ecmascript/execution.rs index 9002560b3..84aea377e 100644 --- a/nova_vm/src/ecmascript/execution.rs +++ b/nova_vm/src/ecmascript/execution.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub mod agent; mod default_host_hooks; mod environments; diff --git a/nova_vm/src/ecmascript/execution/agent.rs b/nova_vm/src/ecmascript/execution/agent.rs index ba8364480..9ea01172c 100644 --- a/nova_vm/src/ecmascript/execution/agent.rs +++ b/nova_vm/src/ecmascript/execution/agent.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! ## Notes //! //! - This is inspired by and/or copied from Kiesel engine: diff --git a/nova_vm/src/ecmascript/execution/default_host_hooks.rs b/nova_vm/src/ecmascript/execution/default_host_hooks.rs index 786cd1edf..bf5dd18bd 100644 --- a/nova_vm/src/ecmascript/execution/default_host_hooks.rs +++ b/nova_vm/src/ecmascript/execution/default_host_hooks.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::{agent::HostHooks, JsResult, Realm}; use crate::ecmascript::types::Function; diff --git a/nova_vm/src/ecmascript/execution/environments.rs b/nova_vm/src/ecmascript/execution/environments.rs index a177c4a64..73fc9bceb 100644 --- a/nova_vm/src/ecmascript/execution/environments.rs +++ b/nova_vm/src/ecmascript/execution/environments.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! ### [9.1 Environment Records](https://tc39.es/ecma262/#sec-environment-records) //! //! Environment Record is a specification type used to define the association of diff --git a/nova_vm/src/ecmascript/execution/environments/declarative_environment.rs b/nova_vm/src/ecmascript/execution/environments/declarative_environment.rs index 14a355d5f..9c82764d8 100644 --- a/nova_vm/src/ecmascript/execution/environments/declarative_environment.rs +++ b/nova_vm/src/ecmascript/execution/environments/declarative_environment.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::{DeclarativeEnvironmentIndex, OuterEnv}; use crate::{ ecmascript::{ diff --git a/nova_vm/src/ecmascript/execution/environments/function_environment.rs b/nova_vm/src/ecmascript/execution/environments/function_environment.rs index 0fec5ab43..8efe9d3a4 100644 --- a/nova_vm/src/ecmascript/execution/environments/function_environment.rs +++ b/nova_vm/src/ecmascript/execution/environments/function_environment.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::{DeclarativeEnvironment, DeclarativeEnvironmentIndex, FunctionEnvironmentIndex}; use crate::{ ecmascript::{ diff --git a/nova_vm/src/ecmascript/execution/environments/global_environment.rs b/nova_vm/src/ecmascript/execution/environments/global_environment.rs index 1ad890412..312004c39 100644 --- a/nova_vm/src/ecmascript/execution/environments/global_environment.rs +++ b/nova_vm/src/ecmascript/execution/environments/global_environment.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::abstract_operations::operations_on_objects::{ define_property_or_throw, has_own_property, set, }; diff --git a/nova_vm/src/ecmascript/execution/environments/module_environment.rs b/nova_vm/src/ecmascript/execution/environments/module_environment.rs index 9c4dab2b5..d3b9f620f 100644 --- a/nova_vm/src/ecmascript/execution/environments/module_environment.rs +++ b/nova_vm/src/ecmascript/execution/environments/module_environment.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::DeclarativeEnvironment; /// ### [9.1.1.5 Module Environment Records](https://tc39.es/ecma262/#sec-module-environment-records) diff --git a/nova_vm/src/ecmascript/execution/environments/object_environment.rs b/nova_vm/src/ecmascript/execution/environments/object_environment.rs index 4abc2cbea..f7610393d 100644 --- a/nova_vm/src/ecmascript/execution/environments/object_environment.rs +++ b/nova_vm/src/ecmascript/execution/environments/object_environment.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::{ObjectEnvironmentIndex, OuterEnv}; use crate::{ ecmascript::{ diff --git a/nova_vm/src/ecmascript/execution/environments/private_environment.rs b/nova_vm/src/ecmascript/execution/environments/private_environment.rs index b5ed83f0d..bcdf9fe96 100644 --- a/nova_vm/src/ecmascript/execution/environments/private_environment.rs +++ b/nova_vm/src/ecmascript/execution/environments/private_environment.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::types::{Function, Value}, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}, diff --git a/nova_vm/src/ecmascript/execution/execution_context.rs b/nova_vm/src/ecmascript/execution/execution_context.rs index c3683fb21..521c672d6 100644 --- a/nova_vm/src/ecmascript/execution/execution_context.rs +++ b/nova_vm/src/ecmascript/execution/execution_context.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::{Agent, EnvironmentIndex, PrivateEnvironmentIndex, RealmIdentifier}; use crate::ecmascript::{scripts_and_modules::ScriptOrModule, types::*}; diff --git a/nova_vm/src/ecmascript/execution/realm.rs b/nova_vm/src/ecmascript/execution/realm.rs index 75a70c02b..e2452abc5 100644 --- a/nova_vm/src/ecmascript/execution/realm.rs +++ b/nova_vm/src/ecmascript/execution/realm.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + mod intrinsics; use super::{ diff --git a/nova_vm/src/ecmascript/execution/realm/intrinsics.rs b/nova_vm/src/ecmascript/execution/realm/intrinsics.rs index 44de87fe6..197a2cd8c 100644 --- a/nova_vm/src/ecmascript/execution/realm/intrinsics.rs +++ b/nova_vm/src/ecmascript/execution/realm/intrinsics.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builtins::{ diff --git a/nova_vm/src/ecmascript/scripts_and_modules.rs b/nova_vm/src/ecmascript/scripts_and_modules.rs index fb3652732..0ec517862 100644 --- a/nova_vm/src/ecmascript/scripts_and_modules.rs +++ b/nova_vm/src/ecmascript/scripts_and_modules.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}; use self::script::ScriptIdentifier; diff --git a/nova_vm/src/ecmascript/scripts_and_modules/module.rs b/nova_vm/src/ecmascript/scripts_and_modules/module.rs index 665685102..15eb300a4 100644 --- a/nova_vm/src/ecmascript/scripts_and_modules/module.rs +++ b/nova_vm/src/ecmascript/scripts_and_modules/module.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::{ marker::PhantomData, ops::{Index, IndexMut}, diff --git a/nova_vm/src/ecmascript/scripts_and_modules/script.rs b/nova_vm/src/ecmascript/scripts_and_modules/script.rs index 20de164e8..6df4e28a9 100644 --- a/nova_vm/src/ecmascript/scripts_and_modules/script.rs +++ b/nova_vm/src/ecmascript/scripts_and_modules/script.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ execution::{ diff --git a/nova_vm/src/ecmascript/syntax_directed_operations.rs b/nova_vm/src/ecmascript/syntax_directed_operations.rs index c27ea210b..d0d855fdb 100644 --- a/nova_vm/src/ecmascript/syntax_directed_operations.rs +++ b/nova_vm/src/ecmascript/syntax_directed_operations.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub(crate) mod function_definitions; pub(crate) mod miscellaneous; pub(crate) mod scope_analysis; diff --git a/nova_vm/src/ecmascript/syntax_directed_operations/function_definitions.rs b/nova_vm/src/ecmascript/syntax_directed_operations/function_definitions.rs index 84d4a06a4..dc034fd81 100644 --- a/nova_vm/src/ecmascript/syntax_directed_operations/function_definitions.rs +++ b/nova_vm/src/ecmascript/syntax_directed_operations/function_definitions.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builtins::{ diff --git a/nova_vm/src/ecmascript/syntax_directed_operations/miscellaneous.rs b/nova_vm/src/ecmascript/syntax_directed_operations/miscellaneous.rs index ff08fca63..3aba7bcec 100644 --- a/nova_vm/src/ecmascript/syntax_directed_operations/miscellaneous.rs +++ b/nova_vm/src/ecmascript/syntax_directed_operations/miscellaneous.rs @@ -1,3 +1,11 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::{ execution::{Agent, EnvironmentIndex, PrivateEnvironmentIndex}, syntax_directed_operations::function_definitions::instantiate_ordinary_function_object, diff --git a/nova_vm/src/ecmascript/syntax_directed_operations/scope_analysis.rs b/nova_vm/src/ecmascript/syntax_directed_operations/scope_analysis.rs index 903b213b7..7039dad98 100644 --- a/nova_vm/src/ecmascript/syntax_directed_operations/scope_analysis.rs +++ b/nova_vm/src/ecmascript/syntax_directed_operations/scope_analysis.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::ops::Deref; use oxc_ast::{ diff --git a/nova_vm/src/ecmascript/syntax_directed_operations/statements_and_declarations.rs b/nova_vm/src/ecmascript/syntax_directed_operations/statements_and_declarations.rs index b12053f4f..792d5541a 100644 --- a/nova_vm/src/ecmascript/syntax_directed_operations/statements_and_declarations.rs +++ b/nova_vm/src/ecmascript/syntax_directed_operations/statements_and_declarations.rs @@ -1 +1,5 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! ## [14.1 Statement Semantics](14.1 Statement Semantics) \ No newline at end of file diff --git a/nova_vm/src/ecmascript/types.rs b/nova_vm/src/ecmascript/types.rs index 555be38c3..4ab2486bc 100644 --- a/nova_vm/src/ecmascript/types.rs +++ b/nova_vm/src/ecmascript/types.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + mod language; mod spec; diff --git a/nova_vm/src/ecmascript/types/language.rs b/nova_vm/src/ecmascript/types/language.rs index 914b52e61..2eb7541ec 100644 --- a/nova_vm/src/ecmascript/types/language.rs +++ b/nova_vm/src/ecmascript/types/language.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub mod bigint; mod function; mod into_numeric; diff --git a/nova_vm/src/ecmascript/types/language/bigint.rs b/nova_vm/src/ecmascript/types/language/bigint.rs index 83de47c19..49cae7f2c 100644 --- a/nova_vm/src/ecmascript/types/language/bigint.rs +++ b/nova_vm/src/ecmascript/types/language/bigint.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + mod data; use std::ops::{Index, IndexMut}; diff --git a/nova_vm/src/ecmascript/types/language/bigint/data.rs b/nova_vm/src/ecmascript/types/language/bigint/data.rs index dacd4444f..0e11079df 100644 --- a/nova_vm/src/ecmascript/types/language/bigint/data.rs +++ b/nova_vm/src/ecmascript/types/language/bigint/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{execution::agent::JsError, types::Value}, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}, diff --git a/nova_vm/src/ecmascript/types/language/function.rs b/nova_vm/src/ecmascript/types/language/function.rs index 741dd5b7d..a75853cc9 100644 --- a/nova_vm/src/ecmascript/types/language/function.rs +++ b/nova_vm/src/ecmascript/types/language/function.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + mod data; pub mod into_function; diff --git a/nova_vm/src/ecmascript/types/language/function/data.rs b/nova_vm/src/ecmascript/types/language/function/data.rs index 444db3308..7ff938360 100644 --- a/nova_vm/src/ecmascript/types/language/function/data.rs +++ b/nova_vm/src/ecmascript/types/language/function/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ builtins::{Behaviour, ECMAScriptFunctionObjectHeapData}, diff --git a/nova_vm/src/ecmascript/types/language/function/into_function.rs b/nova_vm/src/ecmascript/types/language/function/into_function.rs index 612e7c6b9..ebd278de8 100644 --- a/nova_vm/src/ecmascript/types/language/function/into_function.rs +++ b/nova_vm/src/ecmascript/types/language/function/into_function.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::Function; use crate::ecmascript::types::language::IntoObject; diff --git a/nova_vm/src/ecmascript/types/language/into_numeric.rs b/nova_vm/src/ecmascript/types/language/into_numeric.rs index c7596d3df..4700addaf 100644 --- a/nova_vm/src/ecmascript/types/language/into_numeric.rs +++ b/nova_vm/src/ecmascript/types/language/into_numeric.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::Numeric; pub trait IntoNumeric diff --git a/nova_vm/src/ecmascript/types/language/into_primitive.rs b/nova_vm/src/ecmascript/types/language/into_primitive.rs index 8303e46dd..42a921835 100644 --- a/nova_vm/src/ecmascript/types/language/into_primitive.rs +++ b/nova_vm/src/ecmascript/types/language/into_primitive.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::Primitive; pub trait IntoPrimitive diff --git a/nova_vm/src/ecmascript/types/language/into_value.rs b/nova_vm/src/ecmascript/types/language/into_value.rs index 69a04e0d8..6c45f39a2 100644 --- a/nova_vm/src/ecmascript/types/language/into_value.rs +++ b/nova_vm/src/ecmascript/types/language/into_value.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::Value; pub trait IntoValue diff --git a/nova_vm/src/ecmascript/types/language/number.rs b/nova_vm/src/ecmascript/types/language/number.rs index 6b914804d..a32b9ad10 100644 --- a/nova_vm/src/ecmascript/types/language/number.rs +++ b/nova_vm/src/ecmascript/types/language/number.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + mod data; use std::ops::{Index, IndexMut}; diff --git a/nova_vm/src/ecmascript/types/language/number/data.rs b/nova_vm/src/ecmascript/types/language/number/data.rs index 1777ad5fb..87540d509 100644 --- a/nova_vm/src/ecmascript/types/language/number/data.rs +++ b/nova_vm/src/ecmascript/types/language/number/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}; #[derive(Debug, Clone, Copy)] diff --git a/nova_vm/src/ecmascript/types/language/numeric.rs b/nova_vm/src/ecmascript/types/language/numeric.rs index a0a3c8b21..7ef9aa38d 100644 --- a/nova_vm/src/ecmascript/types/language/numeric.rs +++ b/nova_vm/src/ecmascript/types/language/numeric.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ abstract_operations::type_conversion::to_number, diff --git a/nova_vm/src/ecmascript/types/language/object.rs b/nova_vm/src/ecmascript/types/language/object.rs index 16a6da413..d269188e5 100644 --- a/nova_vm/src/ecmascript/types/language/object.rs +++ b/nova_vm/src/ecmascript/types/language/object.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + mod data; mod internal_methods; mod internal_slots; diff --git a/nova_vm/src/ecmascript/types/language/object/data.rs b/nova_vm/src/ecmascript/types/language/object/data.rs index b2754c753..39115b0a7 100644 --- a/nova_vm/src/ecmascript/types/language/object/data.rs +++ b/nova_vm/src/ecmascript/types/language/object/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::Object; use crate::{ ecmascript::{execution::Agent, types::Value}, diff --git a/nova_vm/src/ecmascript/types/language/object/internal_methods.rs b/nova_vm/src/ecmascript/types/language/object/internal_methods.rs index f94ee4d85..4ee548e7a 100644 --- a/nova_vm/src/ecmascript/types/language/object/internal_methods.rs +++ b/nova_vm/src/ecmascript/types/language/object/internal_methods.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::{InternalSlots, IntoObject, Object, PropertyKey}; use crate::ecmascript::{ abstract_operations::testing_and_comparison::same_value, diff --git a/nova_vm/src/ecmascript/types/language/object/internal_slots.rs b/nova_vm/src/ecmascript/types/language/object/internal_slots.rs index 9dc7c0b15..c9c93942c 100644 --- a/nova_vm/src/ecmascript/types/language/object/internal_slots.rs +++ b/nova_vm/src/ecmascript/types/language/object/internal_slots.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::{Object, OrdinaryObject}; use crate::ecmascript::execution::{Agent, ProtoIntrinsics}; diff --git a/nova_vm/src/ecmascript/types/language/object/into_object.rs b/nova_vm/src/ecmascript/types/language/object/into_object.rs index 3f48a1cf5..04c7bf3dc 100644 --- a/nova_vm/src/ecmascript/types/language/object/into_object.rs +++ b/nova_vm/src/ecmascript/types/language/object/into_object.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::types::language::into_value::IntoValue; use super::Object; diff --git a/nova_vm/src/ecmascript/types/language/object/property_key.rs b/nova_vm/src/ecmascript/types/language/object/property_key.rs index 9c3021db1..5541bb2f4 100644 --- a/nova_vm/src/ecmascript/types/language/object/property_key.rs +++ b/nova_vm/src/ecmascript/types/language/object/property_key.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ abstract_operations::type_conversion::parse_string_to_integer_property_key, diff --git a/nova_vm/src/ecmascript/types/language/object/property_storage.rs b/nova_vm/src/ecmascript/types/language/object/property_storage.rs index c36bc8346..b5b2db055 100644 --- a/nova_vm/src/ecmascript/types/language/object/property_storage.rs +++ b/nova_vm/src/ecmascript/types/language/object/property_storage.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::cell::Ref; use crate::{ diff --git a/nova_vm/src/ecmascript/types/language/primitive.rs b/nova_vm/src/ecmascript/types/language/primitive.rs index bcf789bbd..ab443a434 100644 --- a/nova_vm/src/ecmascript/types/language/primitive.rs +++ b/nova_vm/src/ecmascript/types/language/primitive.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use small_string::SmallString; use crate::SmallInteger; diff --git a/nova_vm/src/ecmascript/types/language/string.rs b/nova_vm/src/ecmascript/types/language/string.rs index cecede950..d063a0f52 100644 --- a/nova_vm/src/ecmascript/types/language/string.rs +++ b/nova_vm/src/ecmascript/types/language/string.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + include!(concat!(env!("OUT_DIR"), "/builtin_strings.rs")); mod data; diff --git a/nova_vm/src/ecmascript/types/language/string/data.rs b/nova_vm/src/ecmascript/types/language/string/data.rs index e3e4d5cd3..24dd23d52 100644 --- a/nova_vm/src/ecmascript/types/language/string/data.rs +++ b/nova_vm/src/ecmascript/types/language/string/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::{cell::OnceCell, num::NonZeroUsize}; use wtf8::{Wtf8, Wtf8Buf}; diff --git a/nova_vm/src/ecmascript/types/language/symbol.rs b/nova_vm/src/ecmascript/types/language/symbol.rs index a3d69b7b9..cfb584da5 100644 --- a/nova_vm/src/ecmascript/types/language/symbol.rs +++ b/nova_vm/src/ecmascript/types/language/symbol.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + mod data; use std::ops::{Index, IndexMut}; diff --git a/nova_vm/src/ecmascript/types/language/symbol/data.rs b/nova_vm/src/ecmascript/types/language/symbol/data.rs index 944509910..b7d965151 100644 --- a/nova_vm/src/ecmascript/types/language/symbol/data.rs +++ b/nova_vm/src/ecmascript/types/language/symbol/data.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::types::String, heap::{CompactionLists, HeapMarkAndSweep, WorkQueues}, diff --git a/nova_vm/src/ecmascript/types/language/value.rs b/nova_vm/src/ecmascript/types/language/value.rs index c7b49c30d..8e4c6d3b0 100644 --- a/nova_vm/src/ecmascript/types/language/value.rs +++ b/nova_vm/src/ecmascript/types/language/value.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::mem::size_of; use crate::{ diff --git a/nova_vm/src/ecmascript/types/spec.rs b/nova_vm/src/ecmascript/types/spec.rs index a48d162fd..486fa43ba 100644 --- a/nova_vm/src/ecmascript/types/spec.rs +++ b/nova_vm/src/ecmascript/types/spec.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + mod data_block; mod property_descriptor; mod reference; diff --git a/nova_vm/src/ecmascript/types/spec/data_block.rs b/nova_vm/src/ecmascript/types/spec/data_block.rs index 9cc563939..e91e68b72 100644 --- a/nova_vm/src/ecmascript/types/spec/data_block.rs +++ b/nova_vm/src/ecmascript/types/spec/data_block.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! ### [6.2.9 Data Blocks](https://tc39.es/ecma262/#sec-data-blocks) use std::{ diff --git a/nova_vm/src/ecmascript/types/spec/property_descriptor.rs b/nova_vm/src/ecmascript/types/spec/property_descriptor.rs index 490861433..c7db1fbcb 100644 --- a/nova_vm/src/ecmascript/types/spec/property_descriptor.rs +++ b/nova_vm/src/ecmascript/types/spec/property_descriptor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{ ecmascript::{ abstract_operations::{ diff --git a/nova_vm/src/ecmascript/types/spec/reference.rs b/nova_vm/src/ecmascript/types/spec/reference.rs index 0a49bd2cb..141a51f0c 100644 --- a/nova_vm/src/ecmascript/types/spec/reference.rs +++ b/nova_vm/src/ecmascript/types/spec/reference.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::{ abstract_operations::{operations_on_objects::set, type_conversion::to_object}, execution::{ diff --git a/nova_vm/src/engine.rs b/nova_vm/src/engine.rs index c681c3890..033d75c01 100644 --- a/nova_vm/src/engine.rs +++ b/nova_vm/src/engine.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + mod bytecode; pub mod small_integer; diff --git a/nova_vm/src/engine/bytecode.rs b/nova_vm/src/engine/bytecode.rs index 63b6b51ae..49c91c9e6 100644 --- a/nova_vm/src/engine/bytecode.rs +++ b/nova_vm/src/engine/bytecode.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + mod executable; mod instructions; pub(super) mod iterator; diff --git a/nova_vm/src/engine/bytecode/executable.rs b/nova_vm/src/engine/bytecode/executable.rs index f712ed975..ee170dff4 100644 --- a/nova_vm/src/engine/bytecode/executable.rs +++ b/nova_vm/src/engine/bytecode/executable.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::{instructions::Instr, Instruction}; use crate::{ ecmascript::{ diff --git a/nova_vm/src/engine/bytecode/instructions.rs b/nova_vm/src/engine/bytecode/instructions.rs index 41ac1b2d2..1823ebfa7 100644 --- a/nova_vm/src/engine/bytecode/instructions.rs +++ b/nova_vm/src/engine/bytecode/instructions.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use oxc_syntax::operator::BinaryOperator; use super::IndexType; diff --git a/nova_vm/src/engine/bytecode/iterator.rs b/nova_vm/src/engine/bytecode/iterator.rs index 2392eab37..050bcc41c 100644 --- a/nova_vm/src/engine/bytecode/iterator.rs +++ b/nova_vm/src/engine/bytecode/iterator.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::collections::VecDeque; use crate::ecmascript::{ diff --git a/nova_vm/src/engine/bytecode/vm.rs b/nova_vm/src/engine/bytecode/vm.rs index 672b16488..1f6183369 100644 --- a/nova_vm/src/engine/bytecode/vm.rs +++ b/nova_vm/src/engine/bytecode/vm.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use oxc_syntax::operator::BinaryOperator; use crate::{ diff --git a/nova_vm/src/engine/small_integer.rs b/nova_vm/src/engine/small_integer.rs index 760f8c2ea..9e1e94a26 100644 --- a/nova_vm/src/engine/small_integer.rs +++ b/nova_vm/src/engine/small_integer.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + /// 56-bit signed integer. #[derive(Clone, Copy, PartialEq)] pub struct SmallInteger { diff --git a/nova_vm/src/heap.rs b/nova_vm/src/heap.rs index 943bd03bf..60bf4a65b 100644 --- a/nova_vm/src/heap.rs +++ b/nova_vm/src/heap.rs @@ -1,10 +1,13 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + pub mod element_array; mod heap_bits; mod heap_constants; mod heap_gc; pub mod indexes; mod object_entry; -mod regexp; pub(crate) use self::heap_constants::{ intrinsic_function_count, intrinsic_object_count, intrinsic_primitive_object_count, diff --git a/nova_vm/src/heap/element_array.rs b/nova_vm/src/heap/element_array.rs index 9ccc422ed..c6d542071 100644 --- a/nova_vm/src/heap/element_array.rs +++ b/nova_vm/src/heap/element_array.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use super::{ indexes::ElementIndex, object_entry::{ObjectEntry, ObjectEntryPropertyDescriptor}, diff --git a/nova_vm/src/heap/heap_bits.rs b/nova_vm/src/heap/heap_bits.rs index 1b9df4253..4477079a7 100644 --- a/nova_vm/src/heap/heap_bits.rs +++ b/nova_vm/src/heap/heap_bits.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::borrow::Borrow; use super::{ diff --git a/nova_vm/src/heap/heap_constants.rs b/nova_vm/src/heap/heap_constants.rs index 9dbc45d81..45c3b3376 100644 --- a/nova_vm/src/heap/heap_constants.rs +++ b/nova_vm/src/heap/heap_constants.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + //! Heap constants for initializing the heap //! //! These define the order in which built-in prototypes and constructors diff --git a/nova_vm/src/heap/heap_gc.rs b/nova_vm/src/heap/heap_gc.rs index 84b654f44..93862d14b 100644 --- a/nova_vm/src/heap/heap_gc.rs +++ b/nova_vm/src/heap/heap_gc.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::thread; use super::{ diff --git a/nova_vm/src/heap/indexes.rs b/nova_vm/src/heap/indexes.rs index 414fc1ddd..62e375806 100644 --- a/nova_vm/src/heap/indexes.rs +++ b/nova_vm/src/heap/indexes.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::{ builtins::{ data_view::data::DataViewHeapData, date::data::DateHeapData, diff --git a/nova_vm/src/heap/object_entry.rs b/nova_vm/src/heap/object_entry.rs index c6c19ae0f..09cb372d3 100644 --- a/nova_vm/src/heap/object_entry.rs +++ b/nova_vm/src/heap/object_entry.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::ecmascript::types::{Function, PropertyDescriptor, PropertyKey, Value}; #[derive(Debug, Clone, Copy)] diff --git a/nova_vm/src/heap/regexp.rs b/nova_vm/src/heap/regexp.rs deleted file mode 100644 index 8b1378917..000000000 --- a/nova_vm/src/heap/regexp.rs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/nova_vm/src/lib.rs b/nova_vm/src/lib.rs index 053595595..54b9f2299 100644 --- a/nova_vm/src/lib.rs +++ b/nova_vm/src/lib.rs @@ -1,4 +1,6 @@ -#![allow(dead_code)] +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. pub mod ecmascript; pub mod engine; diff --git a/nova_vm/tests/object_prototype_tests.rs b/nova_vm/tests/object_prototype_tests.rs index 0af4aad87..63accce68 100644 --- a/nova_vm/tests/object_prototype_tests.rs +++ b/nova_vm/tests/object_prototype_tests.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use std::{fs, path::PathBuf}; use nova_vm::ecmascript::{ diff --git a/nova_vm/tests/sources/objectPrototype.test.js b/nova_vm/tests/sources/objectPrototype.test.js index eee85e9a0..6f139f4bb 100644 --- a/nova_vm/tests/sources/objectPrototype.test.js +++ b/nova_vm/tests/sources/objectPrototype.test.js @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + const nullObject = Object.create(null); if (!nullObject) { diff --git a/small_string/lib.rs b/small_string/lib.rs index 9ab7869e4..301e0d579 100644 --- a/small_string/lib.rs +++ b/small_string/lib.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + #[derive(Clone, Copy, PartialEq, Eq, Hash)] pub struct SmallString { /// The string will be padded to 7 bytes with the 0xFF byte, which is never diff --git a/tests/nova-harness.js b/tests/nova-harness.js index 9b2754ceb..dcb35b4af 100644 --- a/tests/nova-harness.js +++ b/tests/nova-harness.js @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + // Nova-specific test262 harness. // This file is run for every test262 test, before any imports. The reason its diff --git a/tests/test262_runner.rs b/tests/test262_runner.rs index 7e73d763e..521559990 100644 --- a/tests/test262_runner.rs +++ b/tests/test262_runner.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + use clap::{Args, Parser as ClapParser, Subcommand}; use rayon::iter::{ParallelBridge, ParallelIterator}; use serde::{Deserialize, Serialize}; From 44a79074d05d0fe34a60c3a0ec5555e27b1b5867 Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Sun, 7 Jul 2024 22:43:52 +0300 Subject: [PATCH 5/6] fix --- common/src/lib.rs | 4 ++++ nova_vm/src/lib.rs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/common/src/lib.rs b/common/src/lib.rs index 1b4a90c93..1bea3a389 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at https://mozilla.org/MPL/2.0/. + #[cfg(test)] mod tests { #[test] diff --git a/nova_vm/src/lib.rs b/nova_vm/src/lib.rs index 54b9f2299..99489c0b7 100644 --- a/nova_vm/src/lib.rs +++ b/nova_vm/src/lib.rs @@ -2,6 +2,8 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. +#![allow(dead_code)] + pub mod ecmascript; pub mod engine; pub mod heap; From aa79bd1425e2ef65fdc26ab120cc982a00c41361 Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Sun, 7 Jul 2024 22:52:39 +0300 Subject: [PATCH 6/6] fix: Remove mention of undecided license --- CONTRIBUTING.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 623468836..53158365a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,13 +5,6 @@ is a pain to deal with. He'll nitpick your PR to the bone if he happens to be in the mood to do so. He's not doing it to be evil or anything, he's just an idiot. Please forgive him, if you can. -The second warning is: There is currently no license in place for Nova. The -license will be some sort of open source license, but whether it'll be some -copyleft license or just MIT is still undecided. At the end of the day, -@aapoalas (again with that guy) has some aspirations of making this project be -bigger than just a hobby-engine. If that day comes, it'd be nice to get more -than a warm handshake out of it. Hence the ongoing lack of license. - ## Pull Request Code of Conduct The following ground rules should be followed: