From 99f24dfbed84cea24fc1d8bb80ab10a2dd3eca0b Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Wed, 26 Jun 2019 14:33:48 +0200 Subject: make vim.loop == require'luv' This avoids initializing libluv a second time if a plugin invokes require'luv'. It is probably not an issue, but better to be safe. --- test/functional/lua/loop_spec.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/functional/lua') diff --git a/test/functional/lua/loop_spec.lua b/test/functional/lua/loop_spec.lua index 3b3b81f886..cd3b935e1a 100644 --- a/test/functional/lua/loop_spec.lua +++ b/test/functional/lua/loop_spec.lua @@ -142,4 +142,8 @@ describe('vim.loop', function() ]]) eq({blocking=false, mode='n'}, exec_lua("return _G.mode")) end) + + it("is equal to require('luv')", function() + eq(true, exec_lua("return vim.loop == require('luv')")) + end) end) -- cgit