Skip to content

Commit

Permalink
Run spell checker.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Aug 24, 2023
1 parent 69c1657 commit fb6abfb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion misc/decorators.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Expose as a godot class.
* An class object is created and attached automaticly when construct an instance from this class
* An class object is created and attached automatically when construct an instance from this class
*/
export function gdclass<T extends godot.Object>(target: new() => T) {
const id = gdclass['internal_class_id'] = gdclass['internal_class_id'] ? gdclass['internal_class_id'] + 1 : 1;
Expand Down
4 changes: 2 additions & 2 deletions misc/godot.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ declare module globalThis {
*
* Workers run in another global context that is different from the current context.
*
* You can run whatever code you like inside the worker thread. All of the godot API are avaliable inside workers.
* You can run whatever code you like inside the worker thread. All of the godot API are available inside workers.
*
* Data is sent between workers and the main thread via a system of messages — both sides send their messages using the `postMessage()` method, and respond to messages via the `onmessage` event handler (the message is contained within the Message event's data attribute.) The data is copied rather than shared.
*
Expand All @@ -81,7 +81,7 @@ declare module globalThis {
/**
* Sends a message to the worker's inner scope. This accepts a single parameter, which is the data to send to the worker.
* @param message The object to deliver to the worker; this will be in the data field in the event delivered to the `onmessage` handler.
* @note The data cannot be instance of `godot.Object` or any other JavaScript object conains functions.
* @note The data cannot be instance of `godot.Object` or any other JavaScript object contains functions.
*/
postMessage(message: any): void;

Expand Down
16 changes: 8 additions & 8 deletions tests/UnitTest.js.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ test('Object.prototype.connect', () => {

let obj = new godot.Object();
obj.connect('script_changed', (...args)=> {
console.log(`signal 'script_changed' emited with:`, ...args);
console.log(`signal 'script_changed' emitted with:`, ...args);
ok = true;
});
obj.emit_signal('script_changed', 123, 'hello');
Expand All @@ -39,28 +39,28 @@ test('Object.prototype.connect', () => {


// --------------------------- Unit Test Implementation ------------------------
function test(description, blcok, group = 'default') {
function test(description, block, group = 'default') {
const entries = TEST_ENTRIES.get(group) || [];
entries.push({ description, blcok });
entries.push({ description, block });
TEST_ENTRIES.set(group, entries);
}
function runEntry(entry) {
return new Promise((resolve, reject) => {
switch (typeof (entry.blcok)) {
switch (typeof (entry.block)) {
case 'boolean':
return resolve(entry.blcok);
return resolve(entry.block);
case 'function': {
try {
resolve(entry.blcok());
resolve(entry.block());
} catch (error) {
console.error(error);
resolve(false);
}
}
break;
case 'object':
if (entry.blcok instanceof Promise) {
entry.blcok.then(() => {
if (entry.block instanceof Promise) {
entry.block.then(() => {
resolve(true);
}).catch(err => {
resolve(false);
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/quickjs/quickjs_binder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ JSModuleDef *QuickJSBinder::js_module_loader(JSContext *ctx, const char *module_
module.hash = hash_var.hash();
module.module = m;
module.res = res;
module.res->reference(); // Avoid auto release as module don't release automaticly
module.res->reference(); // Avoid auto release as module don't release automatically
module.res_value = val;
module.flags = MODULE_FLAG_RESOURCE;
module.module = m;
Expand Down
2 changes: 1 addition & 1 deletion tools/editor_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ void JavaScriptPlugin::_export_typescript_declare_file(const String &p_path) {

void JavaScriptPlugin::_export_enumeration_binding_file(const String &p_path) {
_export_typescript_declare_file("");
String file_content = "// Tool generated file DO NOT modify mannually\n"
String file_content = "// Tool generated file DO NOT modify manually\n"
"// Add this script as first autoload to your project to bind enumerations for release build of godot engine\n"
"\n"
"if (!godot.DEBUG_ENABLED) {\n"
Expand Down

0 comments on commit fb6abfb

Please sign in to comment.