Update full-moon to fix parsing issues#586
Merged
JohnnyMorganz merged 3 commits intomainfrom Sep 22, 2022
Merged
Conversation
Codecov ReportBase: 97.65% // Head: 97.65% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #586 +/- ##
=======================================
Coverage 97.65% 97.65%
=======================================
Files 14 14
Lines 5576 5576
=======================================
Hits 5445 5445
Misses 131 131 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Contributor
Repo Comparison TestError when running main on Error when running main on diff --git ORI/luvit/examples/event-emitters.lua ALT/luvit/examples/event-emitters.lua
index 92e2b1d..00f2356 100644
--- ORI/luvit/examples/event-emitters.lua
+++ ALT/luvit/examples/event-emitters.lua
@@ -1,14 +1,14 @@
-local Emitter = require('core').Emitter
+local Emitter = require("core").Emitter
--[Example 1]
local emitter = Emitter:new()
-emitter:on("foo", function (...)
- p("on_foo", ...)
+emitter:on("foo", function(...)
+ p("on_foo", ...)
end)
-emitter:once("foo", function (...)
- p("on_foo2", ...)
+emitter:once("foo", function(...)
+ p("on_foo2", ...)
end)
p(emitter)
@@ -20,8 +20,7 @@ emitter:emit("foo", 4, 5, 6)
local parent = Emitter:new()
local child = Emitter:new()
-child:propagate('error', parent)
-parent:on('error', p)
-
-child:emit('error', 'from child')
+child:propagate("error", parent)
+parent:on("error", p)
+child:emit("error", "from child")
|
Contributor
Repo Comparison TestError when running main on Error when running main on diff --git ORI/luvit/examples/event-emitters.lua ALT/luvit/examples/event-emitters.lua
index 92e2b1d..00f2356 100644
--- ORI/luvit/examples/event-emitters.lua
+++ ALT/luvit/examples/event-emitters.lua
@@ -1,14 +1,14 @@
-local Emitter = require('core').Emitter
+local Emitter = require("core").Emitter
--[Example 1]
local emitter = Emitter:new()
-emitter:on("foo", function (...)
- p("on_foo", ...)
+emitter:on("foo", function(...)
+ p("on_foo", ...)
end)
-emitter:once("foo", function (...)
- p("on_foo2", ...)
+emitter:once("foo", function(...)
+ p("on_foo2", ...)
end)
p(emitter)
@@ -20,8 +20,7 @@ emitter:emit("foo", 4, 5, 6)
local parent = Emitter:new()
local child = Emitter:new()
-child:propagate('error', parent)
-parent:on('error', p)
-
-child:emit('error', 'from child')
+child:propagate("error", parent)
+parent:on("error", p)
+child:emit("error", "from child")
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #585
Fixes #587