Coder Social home page Coder Social logo

Comments (4)

evaera avatar evaera commented on May 30, 2024 1

This appears to be fixed now.

local Promise = require(script.Parent.Lib)

local p = Promise.new(function(_, rej)
	error("lol")
end)

p:expect()
  05:39:34.234  -- Promise.Error(ExecutionError) --
ServerScriptService.Script:10: lol
ServerScriptService.Script:10
ServerScriptService.Lib:172 function runExecutor
ServerScriptService.Lib:299

Promise created at:

ServerScriptService.Script:9
  -  Server - Lib:1664
  05:39:34.234  Stack Begin  -  Studio
  05:39:34.234  Script 'ServerScriptService.Lib', Line 1664 - function expectHelper  -  Studio - Lib:1664
  05:39:34.234  Script 'ServerScriptService.Lib', Line 1696 - function expect  -  Studio - Lib:1696
  05:39:34.234  Script 'ServerScriptService.Script', Line 13  -  Studio - Script:13
  05:39:34.234  Stack End  -  Studio

from roblox-lua-promise.

evaera avatar evaera commented on May 30, 2024

This is ostensibly a Roblox bug.

I can't fix this, because I have no way to know if the error is going to be displayed to a console for humans or caught by a program and inspected. It would be undesirable for the Promise library to implicitly convert rejection value types.

Going to contact Roblox about this issue and hopefully they can address it on their end.

from roblox-lua-promise.

evaera avatar evaera commented on May 30, 2024

Hey @jhampton - since you're here... This is still an outstanding issue which makes using the Promise library a little more inconvenient. Do you think you could take a look? There's an open feature request, but it didn't get any response. Thanks!

from roblox-lua-promise.

jhampton avatar jhampton commented on May 30, 2024

Sure thing @evaera, I'll take a look!

from roblox-lua-promise.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.