Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Latest commit

 

History

History
84 lines (71 loc) · 1.96 KB

TODO.md

File metadata and controls

84 lines (71 loc) · 1.96 KB

To do list

  • defineglobalnsalias()
  • defineglobalvar()
  • defineglobalvirtualvar()
  • defineglobalmethod()

Constructor operations:

  • construct

Property operations:

  • callproperty
    • Apply any function with this=base
    • Different from getproperty, does not create bound methods inefficiently.
    • Consider calling ecmaprototype methods
  • setproperty
    • Dictionary of weak keys does not accept any key.
    • Setting class static "prototype" results into error.
  • deleteproperty
    • Dictionary of weak keys does not accept any key.
    • Deleting class static "prototype" results into error.
  • getglobalproperty
  • setglobalproperty
  • callglobalproperty
  • nameiterator
    • Dictionary of weak keys cannot be iterated as it holds a JavaScript WeakMap.
  • valueiterator
    • Dictionary of weak keys cannot be iterated as it holds a JavaScript WeakMap.

Define the following ActionScript 3 classes and properties:

  • undefined
  • NaN
  • Infinity
  • Object
  • Class
  • Function
  • Namespace
  • QName
  • XML
  • XMLList
  • Number
  • uint
  • int
  • float
  • String
  • Boolean
  • Array
  • Error
  • ArgumentError
  • DefinitionError
  • EvalError
  • RangeError
  • ReferenceError
  • SecurityError
  • SyntaxError
  • TypeError
  • URIError
  • VerifyError
  • flash.utils.Dictionary
  • __AS3__.vec.Vector
  • __AS3__.vec.Vector$double
  • __AS3__.vec.Vector$float
  • __AS3__.vec.Vector$int
  • __AS3__.vec.Vector$uint

E4X

Use the NPM package @xmldom/xmldom for the E4X implementation.

import { DOMParser, XMLSerializer } from "@xmldom/xmldom";

const source = `<xml xmlns="a">
	<child>test</child>
	<child/>
</xml>`;

const doc: XMLDocument = new DOMParser().parseFromString(source, "text/xml");

const serialized = new XMLSerializer().serializeToString(doc);