Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Reformat AS3 code using asformat #18439

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 12 additions & 9 deletions core/src/avm2/globals/ArgumentError.as
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package {
public dynamic class ArgumentError extends Error {
ArgumentError.prototype.name = "ArgumentError"
package
{
public dynamic class ArgumentError extends Error
{
ArgumentError.prototype.name = "ArgumentError";

public function ArgumentError(message:String = "", code:* = 0) {
super(message, code)
this.name = prototype.name
}
public function ArgumentError(message:String = "", code:* = 0)
{
super(message, code);
this.name = prototype.name;
}

public static const length:int = 1;
}
public static const length:int = 1;
}
}
8 changes: 5 additions & 3 deletions core/src/avm2/globals/Array.as
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a stub - the actual class is defined in `array.rs`
package {
public dynamic class Array {
}
package
{
public dynamic class Array
{
}
}
6 changes: 4 additions & 2 deletions core/src/avm2/globals/Boolean.as
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a stub - the actual class is defined in `boolean.rs`
package {
public class Boolean {
package
{
public class Boolean
{
}
}
6 changes: 4 additions & 2 deletions core/src/avm2/globals/Class.as
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a stub - the actual class is defined in `class.rs`
package {
public dynamic class Class {
package
{
public dynamic class Class
{
}
}
Loading
Loading